Browse Source

actually run disconnect handlers when a client disconnects

pbs
jake 5 years ago
parent
commit
81043891a1
  1. 2
      src/common/mainloop.rs

2
src/common/mainloop.rs

@ -221,7 +221,7 @@ async fn client_recv_loop<S, R>(client_id: ClientId,
match err {
NetworkError::ClientDisconnected => {
trace!("[client disconnected] {:?}", client_id);
server_sender.send(ClientAction::Disconnect(client_id));
server_sender.send(ClientAction::Disconnect(client_id)).await;
break;
}
_ => {

Loading…
Cancel
Save