diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-04-22 20:07:55 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-04-22 20:07:55 (GMT) |
commit | 353022b20f6fe6bddff9cab99e68fd8dde3d79b3 (patch) | |
tree | 65299993646f9976c0b9a3726c38d66ef9ecb26b /Swiften/LinkLocal/DNSSD | |
parent | 52ffd46b4aa8dab5f4f3b65dc4ec2eacdf7c6309 (diff) | |
download | swift-353022b20f6fe6bddff9cab99e68fd8dde3d79b3.zip swift-353022b20f6fe6bddff9cab99e68fd8dde3d79b3.tar.bz2 |
Clean up Avahi browse query properly.
Diffstat (limited to 'Swiften/LinkLocal/DNSSD')
-rw-r--r-- | Swiften/LinkLocal/DNSSD/Avahi/AvahiBrowseQuery.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Swiften/LinkLocal/DNSSD/Avahi/AvahiBrowseQuery.h b/Swiften/LinkLocal/DNSSD/Avahi/AvahiBrowseQuery.h index a7b6db1..cca0475 100644 --- a/Swiften/LinkLocal/DNSSD/Avahi/AvahiBrowseQuery.h +++ b/Swiften/LinkLocal/DNSSD/Avahi/AvahiBrowseQuery.h @@ -35,7 +35,11 @@ namespace Swift { } void stopBrowsing() { - // TODO + assert(browser); + avahi_threaded_poll_lock(querier->getThreadedPoll()); + avahi_server_browser_free(browser); + browser = NULL; + avahi_threaded_poll_unlock(querier->getThreadedPoll()); } private: |