Compare commits

..

2 Commits

Author SHA1 Message Date
Administrator
0fb9d2f62b release: v2.2.5 2026-03-21 11:40:58 +01:00
Administrator
b0a2eda131 🐛 fix(remote): clean up auth timeout and client state on WebSocket error
The error handler was missing clearTimeout for the auth timeout timer
and didn't clean up authenticated client state (signaling disconnect,
destroying capture window when last client drops).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-21 11:40:18 +01:00
2 changed files with 14 additions and 1 deletions

View File

@ -125,7 +125,20 @@ class RemoteServer {
});
ws.on('error', () => {
clearTimeout(authTimeout);
const client = this._clients.get(ws);
const wasAuthenticated = client && client.authenticated;
this._clients.delete(ws);
if (wasAuthenticated) {
this._config.onSignalingToCapture({
type: 'client-disconnected',
clientId: client.id
});
if (this.getClientCount() === 0) {
this._config.onDestroyCaptureWindow();
}
}
});
}

View File

@ -1,6 +1,6 @@
{
"name": "multi-hoster-uploader",
"version": "2.2.4",
"version": "2.2.5",
"description": "Upload files to doodstream, voe, vidmoly, byse simultaneously",
"main": "main.js",
"scripts": {