Skip to content

fix(extension-redis): unsubscribe from pubsub#945

Merged
janthurau merged 1 commit intoueberdosis:mainfrom
tomi-bigpi:fix-pubsub-unsubscribe
Jul 19, 2025
Merged

fix(extension-redis): unsubscribe from pubsub#945
janthurau merged 1 commit intoueberdosis:mainfrom
tomi-bigpi:fix-pubsub-unsubscribe

Conversation

@tomi-bigpi
Copy link
Contributor

Fixes an issue where Redis PubSub is not unsubscribed due to delayed disconnect logic.

The Redis subscription unsubscribe code is behind a setTimeout which checks if the document instance is still available on the parent instance, which for us is never since the document is disposed by the time the setTimeout code is called.

Additionally, the existing unloadDocument call is suspect, but I left it in with a check for a valid document instance.

@janthurau janthurau merged commit 0812d48 into ueberdosis:main Jul 19, 2025
@janthurau
Copy link
Contributor

Thank you!

@fuadsaud
Copy link

fuadsaud commented Aug 3, 2025

Shouldn't redis unsubscribe on afterUnloadDocument?

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.

3 participants