We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f6fc8f1 commit 7cf82e6Copy full SHA for 7cf82e6
src/json-rpc/upstream/server.ts
@@ -48,6 +48,14 @@ export function createUpstreamServer({
48
49
function cleanup() {
50
if (reconnectTimer) clearTimeout(reconnectTimer);
51
+ for (const [_, unsub] of unsubscribers) {
52
+ try {
53
+ unsub();
54
+ } catch {
55
+ //
56
+ }
57
58
+
59
unsubscribers.clear();
60
states.clear();
61
subscriptions.abort();
src/json-rpc/upstream/shared.ts
@@ -281,6 +281,12 @@ function _createSharedSubscription(
281
//
282
}
283
284
285
+ onLocalUnsubscribe(localId);
286
287
288
289
290
localSubs.delete(localId);
291
292
try {
0 commit comments