Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions livekit/src/rtc_engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,13 @@ impl EngineInner {
match action {
proto::leave_request::Action::Resume
| proto::leave_request::Action::Reconnect => {
let running_handle = self.running_handle.read();
Copy link
Contributor

@ladvoc ladvoc Oct 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears reading from the RwLock on this line leads to a deadlock—I will have to dig deeper to determine why this is the case.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see the issue, the read lock wasn't released in time. fixed in 701962c


// server could have sent a leave & disconnected signal client
// we don't want to start another resume cycle
if !running_handle.can_reconnect {
return Ok(());
}
log::warn!(
"received session close: {:?} {:?} {:?}",
source,
Expand Down
Loading