Skip to content

Fix event handler leak on room disconnect#226

Merged
MaxHeimbrock merged 1 commit intomainfrom
max/fix-event-handler-leak
Apr 10, 2026
Merged

Fix event handler leak on room disconnect#226
MaxHeimbrock merged 1 commit intomainfrom
max/fix-event-handler-leak

Conversation

@MaxHeimbrock
Copy link
Copy Markdown
Contributor

Background

RpcMethodInvocationReceived was subscribed in OnConnect but never unsubscribed in OnDisconnect, leaking the handler on each reconnect cycle. DisconnectReceived already unsubscribes itself in its own handler.

Changes

  • Unsubscribe on disconnect

RpcMethodInvocationReceived was subscribed in OnConnect but
never unsubscribed in OnDisconnect, leaking the handler on
each reconnect cycle. DisconnectReceived already unsubscribes
itself in its own handler.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@MaxHeimbrock MaxHeimbrock marked this pull request as ready for review April 10, 2026 12:56
@MaxHeimbrock MaxHeimbrock merged commit 434009b into main Apr 10, 2026
12 of 13 checks passed
@MaxHeimbrock MaxHeimbrock deleted the max/fix-event-handler-leak branch April 10, 2026 12:56
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.

1 participant