Skip to content

Unsubscribe leaks subscriptions#196

Closed
ddetkovs wants to merge 1 commit intopostaljs:masterfrom
ddetkovs:patch-1
Closed

Unsubscribe leaks subscriptions#196
ddetkovs wants to merge 1 commit intopostaljs:masterfrom
ddetkovs:patch-1

Conversation

@ddetkovs
Copy link

This only happens when publish is in progress. Unsubscribe goes through passed in subscriptions and adds the first subscription to the unsubscribe queue, but not the rest. Changing the return statement to continue fixes this, since it won't exit the for loop until it goes through all of the subscriptions and adds them to unsubscribe queue.

This only happens when publish is in progress. Unsubscribe goes through passed in subscriptions and adds the first subscription to the unsubscribe queue, but not the rest. Changing the return statement to continue fixes this, since it won't exit the for loop until it goes through all of the subscriptions and adds them to unsubscribe queue.
@ifandelse
Copy link
Contributor

Sorry for the long delay in responding :)

V3 is about to land - complete rewrite in TypeScript. This issue won't be present there.

@ifandelse ifandelse closed this Mar 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants