channel-worker 1.0.9 → 1.0.10

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.
@@ -114,10 +114,11 @@ class NstManager {
114
114
  profileId = await this.ensureProfile(profileIdOrName, { extensionPath: options.extensionPath });
115
115
  }
116
116
 
117
- // Check if already running
117
+ // If already running, stop first to reload with fresh extension
118
118
  if (await this.isProfileRunning(profileId)) {
119
- console.log(`[nst] Profile ${profileId} already running — skipping`);
120
- return { profileId, alreadyRunning: true };
119
+ console.log(`[nst] Profile ${profileId} already running — restarting to load extension`);
120
+ await this.stopProfile(profileId);
121
+ await new Promise(r => setTimeout(r, 3000)); // wait for browser to close
121
122
  }
122
123
 
123
124
  // Set proxy before launch
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "channel-worker",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Channel Manager worker daemon — runs on remote machines to execute video pipeline jobs",
5
5
  "main": "lib/daemon.js",
6
6
  "bin": {