From f18480711d5348b599b1286097c64470537f6918 Mon Sep 17 00:00:00 2001 From: Ivan Mahonin Date: Oct 26 2021 07:21:27 +0000 Subject: fix poll --- 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) {