diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-20 08:19:03 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-20 08:19:03 +0000 |
commit | 442b1d33c81681e20ed9684b8503ff9471fca38c (patch) | |
tree | 36e73d330a1a86c078f4a532f4dd02347c32363a /src/transport/plugin_transport_udp.c | |
parent | d0d88da8754bd5184be826dc4d271c5abeece0c5 (diff) | |
download | gnunet-442b1d33c81681e20ed9684b8503ff9471fca38c.tar.gz gnunet-442b1d33c81681e20ed9684b8503ff9471fca38c.zip |
SHUTDOWN
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 4 |
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, |