Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
135abbab
Commit
135abbab
authored
Feb 16, 2018
by
Andreas Schmidt
Browse files
Fix receive_ordered_wait.
parent
ba4533c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
prrt/proto/socket.c
View file @
135abbab
...
...
@@ -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
;
}
...
...
Andreas Schmidt
@as
mentioned in issue
#8 (closed)
·
Feb 19, 2018
mentioned in issue
#8 (closed)
mentioned in issue #8
Toggle commit list
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment