X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fconky.c;h=bb21503d6b6cb35e19eb669b6c56f016c1f030e4;hb=bcfd869379f9b550503e1e878d7fcd21e49c7212;hp=decade35e0c8abf9f002c7c33a5b4bb8c03a4c98;hpb=663baa883bad5be247e89ee1eaaeb0cbed7a6c44;p=monky diff --git a/src/conky.c b/src/conky.c index decade3..bb21503 100644 --- a/src/conky.c +++ b/src/conky.c @@ -4549,6 +4549,18 @@ static void load_config_file(const char *); /* reload the config file */ void reload_config(void) { +#if defined(XMMS) || defined(BMP) || defined(AUDACIOUS) || defined(INFOPIPE) + if (info.xmms.thread) { + if (destroy_xmms_thread()!=0) + { + ERR("error destroying xmms_player thread"); + } + } +#endif +#ifdef TCP_PORT_MONITOR + destroy_tcp_port_monitor_collection( info.p_tcp_port_monitor_collection ); +#endif + if (current_config) { clear_fs_stats(); load_config_file(current_config); @@ -4559,16 +4571,9 @@ void reload_config(void) #endif /* X11 */ #ifdef TCP_PORT_MONITOR - destroy_tcp_port_monitor_collection( info.p_tcp_port_monitor_collection ); info.p_tcp_port_monitor_collection = NULL; #endif #if defined(XMMS) || defined(BMP) || defined(AUDACIOUS) || defined(INFOPIPE) - if (info.xmms.thread) { - if (destroy_xmms_thread()!=0) - { - ERR("error destroying xmms_player thread"); - } - } if ( (!info.xmms.thread) && (info.xmms.current_project > PROJECT_NONE) && (create_xmms_thread() !=0) ) {