util Host: fix a double Read Lock bug in fn Host::session_readable() (#11175)
This commit is contained in:
parent
6b57429d72
commit
f99819d326
@ -842,6 +842,7 @@ impl Host {
|
|||||||
if duplicate {
|
if duplicate {
|
||||||
trace!(target: "network", "Rejected duplicate connection: {}", token);
|
trace!(target: "network", "Rejected duplicate connection: {}", token);
|
||||||
session.lock().disconnect(io, DisconnectReason::DuplicatePeer);
|
session.lock().disconnect(io, DisconnectReason::DuplicatePeer);
|
||||||
|
drop(handlers);
|
||||||
self.kill_connection(token, io, false);
|
self.kill_connection(token, io, false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user