Skip to content
This repository was archived by the owner on Nov 6, 2020. It is now read-only.

Commit d7f8a94

Browse files
Boqin Qindvdplm
authored andcommitted
util Host: fix a double Read Lock bug in fn Host::session_readable() (#11175)
1 parent 8b935ab commit d7f8a94

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

util/network-devp2p/src/host.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -835,6 +835,7 @@ impl Host {
835835
if duplicate {
836836
trace!(target: "network", "Rejected duplicate connection: {}", token);
837837
session.lock().disconnect(io, DisconnectReason::DuplicatePeer);
838+
drop(handlers);
838839
self.kill_connection(token, io, false);
839840
return;
840841
}

0 commit comments

Comments
 (0)