Commit 135abbab authored by Andreas Schmidt's avatar Andreas Schmidt
Browse files

Fix receive_ordered_wait.

parent ba4533c2
......@@ -334,10 +334,8 @@ int32_t PrrtSocket_receive_ordered_wait(PrrtSocket *s, void *buf_ptr, prrtTimede
PrrtPacket *packet;
do {
prrtTimestamp_t now = PrrtClock_get_current_time_us();
struct timespec deadline = abstime_from_now(time_window_us);
packet = PrrtPacketDeliveryStore_get_packet_timedwait(s->packetDeliveryStore, now - time_window_us,
now + time_window_us, &deadline);
packet = PrrtPacketDeliveryStore_get_packet_wait(s->packetDeliveryStore, now - time_window_us,
now + time_window_us);
if (PrrtSocket_closing(s)) {
return -1;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment