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

Commit

Permalink
util Host: fix a double Read Lock bug in fn Host::session_readable() (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Boqin Qin authored and niklasad1 committed Nov 5, 2019
1 parent ed970b3 commit 44dc779
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions util/network-devp2p/src/host.rs
Original file line number Diff line number Diff line change
Expand Up @@ -842,6 +842,7 @@ impl Host {
if duplicate {
trace!(target: "network", "Rejected duplicate connection: {}", token);
session.lock().disconnect(io, DisconnectReason::DuplicatePeer);
drop(handlers);
self.kill_connection(token, io, false);
return;
}
Expand Down

0 comments on commit 44dc779

Please sign in to comment.