@torrent-tv/proxy 2.99.8 → 2.99.9
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/package.json
CHANGED
|
@@ -313,6 +313,14 @@ export function createTunnelClient({
|
|
|
313
313
|
signalRoutes.delete(sessionId);
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
+
// Closed because this proxy is stopping (`disconnect`), which clears the
|
|
317
|
+
// connection before its close arrives. Read as a handover, a stopping
|
|
318
|
+
// proxy said a replacement carried its tunnel while viewers found no
|
|
319
|
+
// proxy at all (r48, torrent-tv/meta#178).
|
|
320
|
+
if (stopped) {
|
|
321
|
+
log(`Tunnel closed (code=${event.code}): this proxy is stopping.`);
|
|
322
|
+
return;
|
|
323
|
+
}
|
|
316
324
|
// A connection this one replaced. The server closes it as soon as the
|
|
317
325
|
// replacement registers, which is the whole point of renewing early —
|
|
318
326
|
// there is nothing to report and nothing to reconnect, because the tunnel
|