From a4724cc7a657ae6cef729546eaaddfcb7b9cfddd Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Sat, 7 Jan 2023 11:27:39 +0200 Subject: [PATCH 50/50] sdl2: Make controlled disconnect from server on quit See osdn #46478 Signed-off-by: Marko Lindqvist --- client/gui-sdl2/optiondlg.c | 1 + 1 file changed, 1 insertion(+) diff --git a/client/gui-sdl2/optiondlg.c b/client/gui-sdl2/optiondlg.c index e97f81fb1c..f8fa0aed83 100644 --- a/client/gui-sdl2/optiondlg.c +++ b/client/gui-sdl2/optiondlg.c @@ -403,6 +403,7 @@ static int exit_callback(struct widget *pwidget) { if (PRESSED_EVENT(main_data.event)) { popdown_optiondlg(TRUE); + disconnect_from_server(); force_exit_from_event_loop(); } -- 2.39.0