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 {
|
||||
trace!(target: "network", "Rejected duplicate connection: {}", token);
|
||||
session.lock().disconnect(io, DisconnectReason::DuplicatePeer);
|
||||
drop(handlers);
|
||||
self.kill_connection(token, io, false);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user