Make more of the code amenable to pthread cancel

This commit is contained in:
Mike Brady
2018-07-14 19:34:31 +01:00
parent bae7585cff
commit d3b79b965d
7 changed files with 114 additions and 53 deletions
-3
View File
@@ -468,9 +468,6 @@ void avahi_dacp_dont_monitor(void *userdata) {
if (userdata) {
dacp_browser_struct *dbs = (dacp_browser_struct *)userdata;
// stop and dispose of everything
/*if (dbs->service_poll)
avahi_threaded_poll_stop((dbs)->service_poll);
*/
if (dbs->service_poll) {
avahi_threaded_poll_stop(dbs->service_poll);
avahi_threaded_poll_lock(dbs->service_poll);