Skip to content
Snippets Groups Projects
Commit 2ece52f3 authored by Arkadiy Paronyan's avatar Arkadiy Paronyan Committed by GitHub
Browse files

Explicit disconnect on timeout (#382)

parent bcd2f274
No related merge requests found
......@@ -393,7 +393,7 @@ impl<B: BlockT, S: Specialization<B>> Protocol<B, S> {
self.specialization.write().maintain_peers(&mut ProtocolContext::new(&self.context_data, io));
for p in aborting {
self.on_peer_disconnected(io, p);
io.disconnect_peer(p);
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment