Skip to content

Ensure there's no dangling timer after BackchannelSink is destroyed#25

Merged
themactep merged 1 commit intothemactep:stablefrom
olivluca:stable
Apr 8, 2026
Merged

Ensure there's no dangling timer after BackchannelSink is destroyed#25
themactep merged 1 commit intothemactep:stablefrom
olivluca:stable

Conversation

@olivluca
Copy link
Copy Markdown

@olivluca olivluca commented Apr 8, 2026

The BackchannelSink schedules a timer to check for timeouts. The method stopPlaying removes the timer but it was never called, so the timer could be called on an already destroyed instance, which in turn made any connection after the first one non functional and eventually it would cause a segmentation fault.
I added a call to stopPlaying in the destructor, instead of calling sendBackchannelStopFrame (which is already called by stopPlaying)

The BackchannelSink schedules a timer to check for timeouts.
The method stopPlaying removes the timer but it was never called, so
the timer could be called on an already destroyed instance, which in
turn made any connection after the first one non functional and
eventually it would cause a segmentation fault.
I added a call to stopPlaying in the destructor, instead of calling
sendBackchannelStopFrame (which is already called by stopPlaying)
@themactep themactep merged commit 2511936 into themactep:stable Apr 8, 2026
0 of 42 checks passed
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