From e4f9451b4438976e63ff1441862ef9dbe7a69724 Mon Sep 17 00:00:00 2001 From: WolverinDEV Date: Sat, 21 Dec 2019 16:59:15 +0100 Subject: [PATCH] Fixed disconnect not working for the menu bar Signed-off-by: WolverinDEV --- shared/js/ui/frames/MenuBar.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shared/js/ui/frames/MenuBar.ts b/shared/js/ui/frames/MenuBar.ts index 96d39e90..0595ef89 100644 --- a/shared/js/ui/frames/MenuBar.ts +++ b/shared/js/ui/frames/MenuBar.ts @@ -319,7 +319,7 @@ namespace top_menu { handler.handleDisconnect(DisconnectReason.REQUESTED); //TODO message? server_connections.active_connection_handler().serverConnection.disconnect(); handler.sound.play(Sound.CONNECTION_DISCONNECTED); - this.log.log(log.server.Type.DISCONNECTED, {}); + handler.log.log(log.server.Type.DISCONNECTED, {}); } control_bar.update_connection_state(); update_state();