summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-08 12:22:39 +0100
committerGravatar Alexey Yakovenko <wakeroid@gmail.com>2009-11-08 12:22:39 +0100
commit16f075f95d55466856cf7f3fdea2c503b2fcd7cf (patch)
treead8c457b89cd4b112b4720f186af2a26c6a037ca /main.c
parent9743e5efa30faa3eedaadc534d821a29ba41290e (diff)
now it's possible to interrupt hanging file operations (e.g. slow http)
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/main.c b/main.c
index a97475a8..a09da293 100644
--- a/main.c
+++ b/main.c
@@ -733,18 +733,21 @@ main (int argc, char *argv[]) {
gtk_widget_show (mainwin);
gtk_main ();
+ // save config
+ pl_save (defpl);
+ conf_save ();
+ // stop receiving messages from outside
+ server_close ();
+ // at this point we can simply do exit(0), but let's clean up for debugging
gtkpl_free (&main_playlist);
gtkpl_free (&search_playlist);
- server_close ();
gdk_threads_leave ();
messagepump_free ();
p_free ();
streamer_free ();
codec_free_locking ();
session_save (sessfile);
- pl_save (defpl);
pl_free ();
- conf_save ();
conf_free ();
plug_unload_all ();
return 0;