aboutsummaryrefslogtreecommitdiff
path: root/src/transport/plugin_transport_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r--src/transport/plugin_transport_udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c
index ca6bbe138..26644bdd3 100644
--- a/src/transport/plugin_transport_udp.c
+++ b/src/transport/plugin_transport_udp.c
@@ -1167,7 +1167,7 @@ udp_plugin_server_read (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc
1167 char *port_start; 1167 char *port_start;
1168 struct IPv4UdpAddress a4; 1168 struct IPv4UdpAddress a4;
1169 1169
1170 if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) 1170 if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
1171 return; 1171 return;
1172 1172
1173 bytes = GNUNET_DISK_file_read(plugin->server_stdout_handle, &mybuf, sizeof(mybuf)); 1173 bytes = GNUNET_DISK_file_read(plugin->server_stdout_handle, &mybuf, sizeof(mybuf));
@@ -1524,7 +1524,7 @@ udp_plugin_select (void *cls,
1524 uint16_t csize; 1524 uint16_t csize;
1525 1525
1526 plugin->select_task = GNUNET_SCHEDULER_NO_TASK; 1526 plugin->select_task = GNUNET_SCHEDULER_NO_TASK;
1527 if (tc->reason == GNUNET_SCHEDULER_REASON_SHUTDOWN) 1527 if ( (tc->reason & GNUNET_SCHEDULER_REASON_SHUTDOWN) != 0)
1528 return; 1528 return;
1529 udp_sock = NULL; 1529 udp_sock = NULL;
1530 if (GNUNET_NETWORK_fdset_isset (tc->read_ready, 1530 if (GNUNET_NETWORK_fdset_isset (tc->read_ready,