Skip to content

Commit

Permalink
Don't wait too long when we have data to send
Browse files Browse the repository at this point in the history
  • Loading branch information
angt committed Jun 27, 2016
1 parent 1db628d commit a01dc81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ int main (int argc, char **argv)
.tv_usec = 100000,
};

if (mud_can_push(mud))
if (mud_can_push(mud) || send_size)
timeout.tv_usec = 1000;

if _0_(select(mud_fd+1, &rfds, NULL, NULL, &timeout)==-1) {
Expand Down

0 comments on commit a01dc81

Please sign in to comment.