delay if disconnected
authorChristian Grothoff <christian@grothoff.org>
Mon, 30 May 2011 09:18:58 +0000 (09:18 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 30 May 2011 09:18:58 +0000 (09:18 +0000)
src/core/core_api.c

index 1c79b051975b4e042000960dde030c1d2923e88b..10531789d7c0c77f999f6f3c169d345932610638 100644 (file)
@@ -1977,7 +1977,8 @@ GNUNET_CORE_peer_change_preference (struct GNUNET_CORE_Handle *h,
   pr->pcic = info;
   pr->pcic_cls = info_cls;
   pr->pcic_ptr = irc; /* for free'ing irc */
-  trigger_next_request (h, GNUNET_NO);
+  if (NULL != h->client)
+    trigger_next_request (h, GNUNET_NO);
   return irc;
 }