- Make gkrellm client disconnect from server on exit

This commit is contained in:
Stefan Gehn 2009-12-26 15:08:00 +00:00
parent c8c1591363
commit 0cc981108b
1 changed files with 9 additions and 0 deletions

View File

@ -2272,9 +2272,18 @@ main(gint argc, gchar **argv)
gkrellm_start_timer(_GK.update_HZ); gkrellm_start_timer(_GK.update_HZ);
setup_signal_handler(); setup_signal_handler();
/* Enter main event-loop */
gtk_main(); gtk_main();
/* Save settings, positions and inet-monitor history */
gkrellm_save_all(); gkrellm_save_all();
/* disconnect from gkrellm-server if we're a client */
if (_GK.server)
{
gkrellm_client_mode_disconnect();
}
gkrellm_exit(0); gkrellm_exit(0);
return 0; return 0;