From: Niklas Hofmann Date: Thu, 31 Jul 2014 01:26:59 +0000 (+0200) Subject: we might have to think about locking in case we call meshlink-methods - todo added X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=c63d82c4801e81988a1d88e466424a4466f83222;p=meshlink we might have to think about locking in case we call meshlink-methods - todo added --- diff --git a/src/discovery.c b/src/discovery.c index 8f0f925e..8754b7a4 100644 --- a/src/discovery.c +++ b/src/discovery.c @@ -18,6 +18,10 @@ //#define MESHLINK_MDNS_SERVICE_NAME "Meshlink" #define MESHLINK_MDNS_FINGERPRINT_KEY "fingerprint" + +// @TODO: aquire mutex in case we call meshlink_* methods? + + static void discovery_resolve_callback( AvahiSServiceResolver *resolver, AVAHI_GCC_UNUSED AvahiIfIndex interface, @@ -106,7 +110,6 @@ static void discovery_resolve_callback( naddr.ss_family = AF_UNKNOWN; } - // @TODO: aquire mutex? if(naddr.ss_family == AF_INET || naddr.ss_family == AF_INET6) { meshlink_hint_address(mesh, node->name, (struct sockaddr*)&naddr);