util Host: fix a double Read Lock bug in fn Host::session_readable() (#11175)

This commit is contained in:
Boqin Qin 2019-10-17 04:59:37 -04:00 committed by Andronik Ordian
parent 6b57429d72
commit f99819d326

View File

@ -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;
}