diff options
Diffstat (limited to 'src/transport/plugin_transport_unix.c')
-rw-r--r-- | src/transport/plugin_transport_unix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_unix.c b/src/transport/plugin_transport_unix.c index 0163a8e5b..d9b666f77 100644 --- a/src/transport/plugin_transport_unix.c +++ b/src/transport/plugin_transport_unix.c | |||
@@ -476,7 +476,7 @@ void retry_send_message (void *cls, | |||
476 | { | 476 | { |
477 | struct RetrySendContext *retry_ctx = cls; | 477 | struct RetrySendContext *retry_ctx = cls; |
478 | 478 | ||
479 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 479 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
480 | { | 480 | { |
481 | GNUNET_free(retry_ctx->msg); | 481 | GNUNET_free(retry_ctx->msg); |
482 | GNUNET_free(retry_ctx->addr); | 482 | GNUNET_free(retry_ctx->addr); |
@@ -817,7 +817,7 @@ unix_plugin_select (void *cls, | |||
817 | uint16_t csize; | 817 | uint16_t csize; |
818 | 818 | ||
819 | plugin->select_task = GNUNET_SCHEDULER_NO_TASK; | 819 | plugin->select_task = GNUNET_SCHEDULER_NO_TASK; |
820 | if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) | 820 | if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0) |
821 | return; | 821 | return; |
822 | 822 | ||
823 | addrlen = sizeof(un); | 823 | addrlen = sizeof(un); |