- int request = GNUNET_NO;
-
- for (th = h->th_head; NULL != th; th = th->next)
- {
- struct GNUNET_MESH_Tunnel *t = th->tunnel;
-
- if (GNUNET_NO == th_is_payload (th) ||
- (t->max_pid >= t->pid || PID_OVERFLOW (t->pid, t->max_pid)))
- {
- request = GNUNET_YES;
- break;
- }
- }
-
- if (GNUNET_YES == request)
- {
- LOG (GNUNET_ERROR_TYPE_DEBUG, " next size: %u\n", th->size);
- h->th =
- GNUNET_CLIENT_notify_transmit_ready (h->client, th->size,
- GNUNET_TIME_UNIT_FOREVER_REL,
- GNUNET_YES, &send_callback, h);
- }
- else
- {
- LOG (GNUNET_ERROR_TYPE_DEBUG, " nothing left to transmit\n");
- }
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " next size: %u\n", size);
+ h->th =
+ GNUNET_CLIENT_notify_transmit_ready (h->client, size,
+ GNUNET_TIME_UNIT_FOREVER_REL,
+ GNUNET_YES, &send_callback, h);
+ }
+ else
+ {
+ LOG (GNUNET_ERROR_TYPE_DEBUG, " nothing left to transmit\n");