do not auto-reconnect during shutdown:
authorChristian Grothoff <christian@grothoff.org>
Tue, 10 Nov 2009 19:53:34 +0000 (19:53 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 10 Nov 2009 19:53:34 +0000 (19:53 +0000)
src/util/client.c

index cb834031c50f7b4db69f7a9db7d86972195f88c0..4dedb55f3e200c290bc4803d8451dcdbf6340f10 100644 (file)
@@ -749,7 +749,7 @@ client_notify (void *cls, size_t size, void *buf)
     {
       delay = GNUNET_TIME_absolute_get_remaining (th->timeout);
       delay.value /= 2;
-      if ( (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & GNUNET_SCHEDULER_get_reason (th->sched))) ||
+      if ( (0 != (GNUNET_SCHEDULER_REASON_SHUTDOWN & GNUNET_SCHEDULER_get_reason (th->sock->sched))) ||
           (GNUNET_YES != th->auto_retry) ||
           (0 == --th->attempts_left) || 
           (delay.value < 1) )