summaryrefslogtreecommitdiff
path: root/plugins/gtkui
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-07 20:33:50 +0200
committerGravatar Alexey Yakovenko <waker@users.sourceforge.net>2014-07-07 20:33:50 +0200
commitb2110655a622e2d0bae9fc4d6db609431ea7984e (patch)
tree52093e36679d4d6c418bee7372ea1f68a564b7bc /plugins/gtkui
parentb221d34330a09b33c2fdb4ea290e8c4b6d21fcf5 (diff)
gtkui: call exit(0) to force exit when background jobs are running, instead of attempt to perform clean exit (which is impossible in these conditions)
Diffstat (limited to 'plugins/gtkui')
-rw-r--r--plugins/gtkui/gtkui.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/plugins/gtkui/gtkui.c b/plugins/gtkui/gtkui.c
index a3cca159..9d8f6dea 100644
--- a/plugins/gtkui/gtkui.c
+++ b/plugins/gtkui/gtkui.c
@@ -1178,9 +1178,14 @@ gtkui_quit_cb (void *ctx) {
if (response != GTK_RESPONSE_YES) {
return FALSE;
}
+ else {
+ exit (0);
+ }
+ }
+ else {
+ progress_abort ();
+ deadbeef->sendmessage (DB_EV_TERMINATE, 0, 0, 0);
}
- progress_abort ();
- deadbeef->sendmessage (DB_EV_TERMINATE, 0, 0, 0);
return FALSE;
}