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 ordian committed Oct 17, 2019
1 parent 6b57429 commit f99819d
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 f99819d

Please sign in to comment.