channel-worker 1.0.11 → 1.0.12
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 +3 -4
- package/package.json +1 -1
package/lib/nst-manager.js
CHANGED
|
@@ -105,11 +105,10 @@ class NstManager {
|
|
|
105
105
|
profileId = await this.ensureProfile(profileIdOrName);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
// If already running,
|
|
108
|
+
// If already running, skip — don't restart
|
|
109
109
|
if (await this.isProfileRunning(profileId)) {
|
|
110
|
-
console.log(`[nst] Profile ${profileId} already running —
|
|
111
|
-
|
|
112
|
-
await new Promise(r => setTimeout(r, 3000)); // wait for browser to close
|
|
110
|
+
console.log(`[nst] Profile ${profileId} already running — skipping`);
|
|
111
|
+
return { profileId, alreadyRunning: true };
|
|
113
112
|
}
|
|
114
113
|
|
|
115
114
|
// Set proxy before launch
|