diff --git a/socket.cpp b/socket.cpp index fe36c9d..8b3f71b 100644 --- a/socket.cpp +++ b/socket.cpp @@ -43,6 +43,7 @@ bool Poll::wait(Time duration) { data.resize(size); int mills = (int)((duration + rand()%1000)/1000); + if (duration > 10 && mills == 0) mills = 1; int res; if (size) {