Skip to content

Commit

Permalink
Fix crash on hangup
Browse files Browse the repository at this point in the history
  • Loading branch information
singpolyma committed Oct 17, 2024
1 parent 38e7f35 commit 805e664
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snikket/jingle/PeerConnection.cpp.hx
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ class MediaStreamTrack {
untyped __cpp__("{0}->onFrame([this](rtc::binary msg, rtc::FrameInfo frame_info) { this->onFrame(msg, frame_info); });", track);
untyped __cpp__("{0}->onOpen([this]() { this->notifyReadyForData(true); });", track);
}
untyped __cpp__("{0}->onClosed([this]() { this->stop(); });", track);
untyped __cpp__("{0}->onClosed([this]() { int base = 0; hx::SetTopOfStack(&base, true); this->stop(); hx::SetTopOfStack((int*)0, true); });", track);
} else {
throw "Track already set";
}
Expand Down

0 comments on commit 805e664

Please sign in to comment.