Skip to content

Commit

Permalink
dbus-tokio: Fix possible deadlock of wake mutex
Browse files Browse the repository at this point in the history
Fixes: #425
  • Loading branch information
diwic committed Feb 21, 2023
1 parent 1dab726 commit a6a744a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dbus-tokio/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ impl<C: AsRef<Channel> + Process> IOResource<C> {
}
};

drop(wake_status);

// If we were woken up by write ready - reset it
let mut write_guard = watch_reg.poll_write_ready(ctx)?;

Expand Down

0 comments on commit a6a744a

Please sign in to comment.