mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-25 02:55:15 +00:00
Fixed bug causing select invalid argument on iodined
This commit is contained in:
parent
c8105dcc08
commit
6f43791ebc
@ -273,8 +273,13 @@ window_sending(struct frag_buffer *w, struct timeval *nextresend)
|
||||
oldest.tv_sec = 0;
|
||||
oldest.tv_usec = 0;
|
||||
|
||||
if (w->numitems == 0)
|
||||
if (w->numitems == 0) {
|
||||
if (nextresend) {
|
||||
nextresend->tv_sec = 0;
|
||||
nextresend->tv_usec = 0;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
gettimeofday(&now, NULL);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user