mirror of
https://github.com/yarrick/iodine.git
synced 2025-04-10 04:21:01 +00:00
Fixed bug causing select invalid argument on iodined
This commit is contained in:
parent
c8105dcc08
commit
6f43791ebc
1 changed files with 6 additions and 1 deletions
|
@ -273,8 +273,13 @@ window_sending(struct frag_buffer *w, struct timeval *nextresend)
|
||||||
oldest.tv_sec = 0;
|
oldest.tv_sec = 0;
|
||||||
oldest.tv_usec = 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;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
gettimeofday(&now, NULL);
|
gettimeofday(&now, NULL);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue