Skip to content

Commit

Permalink
stream: drop some locks earlier to avoid a locking order mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
ystreet committed Aug 10, 2024
1 parent 90d0bc5 commit 14bd8db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions librice/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ impl Stream {
for data in reply.data {
component.handle_incoming_data(data);
}
drop(proto_agent);
drop(component);

if reply.gather_handled {
if let Some(stream) = weak_inner.upgrade() {
Expand Down

0 comments on commit 14bd8db

Please sign in to comment.