channel-worker 2.2.4 → 2.2.6
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/command-poller.js +3 -1
- package/package.json +1 -1
package/lib/command-poller.js
CHANGED
|
@@ -1323,7 +1323,9 @@ class CommandPoller {
|
|
|
1323
1323
|
const lastActivity = this._profileLastActivity[profileId]
|
|
1324
1324
|
|| (name && this._profileLastActivity[name])
|
|
1325
1325
|
|| 0;
|
|
1326
|
-
|
|
1326
|
+
// Only close profiles that daemon has launched (tracked in _profileLastActivity).
|
|
1327
|
+
// User-launched profiles have no tracking entry — leave them alone.
|
|
1328
|
+
if (!lastActivity) continue;
|
|
1327
1329
|
if ((now - lastActivity) > IDLE_TIMEOUT) {
|
|
1328
1330
|
console.log(`[profile-timeout] Closing idle profile ${browser.name || profileId} (idle ${Math.round((now - lastActivity) / 1000)}s)`);
|
|
1329
1331
|
try {
|