From d64754aca433697a16ba9b1e56f2dc5de3fc0bd4 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Fri, 24 Jan 2014 20:35:31 +0000 Subject: Ensure the screen actually gets closed before NetSurf quits. --- amiga/gui.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index 6bad1dbee..a9c72c9e9 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -2787,9 +2787,13 @@ void ami_gui_close_screen(struct Screen *scrn, BOOL locked_screen) if(locked_screen == TRUE) return; /* If this is our own screen, wait for visitor windows to close */ - LOG(("Waiting for visitor windows to close...")); + LOG(("Waiting for visitor windows to close... (signal)")); Wait(scrnsig); - CloseScreen(scrn); + + while (CloseScreen(scrn) == FALSE) { + LOG(("Still waiting for visitor windows to close... (polling)")); + Delay(50); + } } static void gui_quit(void) -- cgit v1.2.3