From 81043891a1ed4fff833a368faf98abd19616aeab Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 25 Jan 2020 12:46:33 -0800 Subject: [PATCH] actually run disconnect handlers when a client disconnects --- src/common/mainloop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/mainloop.rs b/src/common/mainloop.rs index b0d3783..4668ece 100644 --- a/src/common/mainloop.rs +++ b/src/common/mainloop.rs @@ -221,7 +221,7 @@ async fn client_recv_loop(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; } _ => {