fix(net): set disconnect status (#520)

This commit is contained in:
Matthias Seitz
2022-12-19 16:22:55 +01:00
committed by GitHub
parent a5f01238b9
commit dc85695d0d

View File

@@ -224,6 +224,7 @@ impl<S> P2PStream<S> {
let mut buf = BytesMut::with_capacity(disconnect.length());
disconnect.encode(&mut buf);
self.outgoing_messages.push_back(buf.freeze());
self.disconnecting = true;
}
}