channel-worker 1.6.19 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/nst-manager.js +2 -8
- package/package.json +1 -1
package/lib/nst-manager.js
CHANGED
|
@@ -153,14 +153,8 @@ class NstManager {
|
|
|
153
153
|
console.log(`[nst] Running browsers: ${running.map(b => b.name || b.profileId).join(', ') || 'none'}`);
|
|
154
154
|
const isRunning = running.some(b => b.profileId === profileId);
|
|
155
155
|
if (isRunning) {
|
|
156
|
-
console.log(`[nst] Profile ${profileId} already running —
|
|
157
|
-
|
|
158
|
-
await this.stopProfile(profileId);
|
|
159
|
-
console.log(`[nst] Stop command sent, waiting 3s...`);
|
|
160
|
-
await new Promise(r => setTimeout(r, 3000));
|
|
161
|
-
} catch (e) {
|
|
162
|
-
console.warn(`[nst] Stop failed: ${e.message} — continuing anyway`);
|
|
163
|
-
}
|
|
156
|
+
console.log(`[nst] Profile ${profileId} already running — skipping launch`);
|
|
157
|
+
return { profileId, alreadyRunning: true };
|
|
164
158
|
}
|
|
165
159
|
|
|
166
160
|
// Update profile language to en-US (Custom) before launch
|