mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
unlock mutexes correctly
git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@945 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
parent
0ae51e37ee
commit
0863020b6e
@ -96,6 +96,7 @@ void *update_mpd(void)
|
|||||||
current_info->conn = 0;
|
current_info->conn = 0;
|
||||||
|
|
||||||
strncpy(current_info->mpd.status, "MPD not responding", TEXT_BUFFER_SIZE - 1);
|
strncpy(current_info->mpd.status, "MPD not responding", TEXT_BUFFER_SIZE - 1);
|
||||||
|
timed_thread_unlock(mpd_timed_thread);
|
||||||
if (timed_thread_test(mpd_timed_thread)) timed_thread_exit(mpd_timed_thread);
|
if (timed_thread_test(mpd_timed_thread)) timed_thread_exit(mpd_timed_thread);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -118,6 +119,7 @@ void *update_mpd(void)
|
|||||||
//fprintf(stderr, "%s\n", current_info->conn->errorStr);
|
//fprintf(stderr, "%s\n", current_info->conn->errorStr);
|
||||||
mpd_closeConnection(current_info->conn);
|
mpd_closeConnection(current_info->conn);
|
||||||
current_info->conn = 0;
|
current_info->conn = 0;
|
||||||
|
timed_thread_unlock(mpd_timed_thread);
|
||||||
if (timed_thread_test(mpd_timed_thread)) timed_thread_exit(mpd_timed_thread);
|
if (timed_thread_test(mpd_timed_thread)) timed_thread_exit(mpd_timed_thread);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -231,6 +233,7 @@ void *update_mpd(void)
|
|||||||
//fprintf(stderr, "%s\n", current_info->conn->errorStr);
|
//fprintf(stderr, "%s\n", current_info->conn->errorStr);
|
||||||
mpd_closeConnection(current_info->conn);
|
mpd_closeConnection(current_info->conn);
|
||||||
current_info->conn = 0;
|
current_info->conn = 0;
|
||||||
|
timed_thread_unlock(mpd_timed_thread);
|
||||||
if (timed_thread_test(mpd_timed_thread)) timed_thread_exit(mpd_timed_thread);
|
if (timed_thread_test(mpd_timed_thread)) timed_thread_exit(mpd_timed_thread);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user