]> git.meshlink.io Git - meshlink/commitdiff
we might have to think about locking in case we call meshlink-methods - todo added
authorNiklas Hofmann <niklas.hofmann@everbase.net>
Thu, 31 Jul 2014 01:26:59 +0000 (03:26 +0200)
committerNiklas Hofmann <niklas.hofmann@everbase.net>
Thu, 31 Jul 2014 01:26:59 +0000 (03:26 +0200)
src/discovery.c

index 8f0f925e9d41581fb61d015d2f8865f8d9db54d6..8754b7a4161e77727e9e4e508756392ae73878b2 100644 (file)
 //#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);