fix
authorChristian Grothoff <christian@grothoff.org>
Mon, 31 Oct 2011 11:47:23 +0000 (11:47 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 31 Oct 2011 11:47:23 +0000 (11:47 +0000)
src/mesh/gnunet-service-mesh.c

index 9d3784567842a9832f81a28a154b59061c3e334b..fd37bb85ef8f2e4965f134964a4d5077b87fd08d 100644 (file)
@@ -1344,9 +1344,10 @@ peer_info_connect_task (void *cls,
 {
   struct MeshPathInfo *path_info = cls;
 
-  if (GNUNET_SCHEDULER_REASON_SHUTDOWN == tc->reason)
+  if (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & tc->reason))
   {
     GNUNET_free (cls);
+    return;
   }
   peer_info_connect (path_info->peer, path_info->t);
   GNUNET_free (cls);