We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 085c526 commit f6de8e1Copy full SHA for f6de8e1
src/state.rs
@@ -144,6 +144,10 @@ impl State {
144
145
let acquire_or_timeout =
146
time::timeout(timeout, self.wakers.wait_for_resolving(peer_id));
147
+
148
+ // Release lock on leases, while waiting for acquire_or_timeout! Otherwise, we might
149
+ // deadlock.
150
+ drop(leases);
151
// The outer `Err` indicates a timeout.
152
match acquire_or_timeout.await {
153
// Locks could be acquired
0 commit comments