Merge pull request #206 from Jakuje/master

Unbreak vpcd
This commit is contained in:
Frank Morgner
2021-08-24 11:24:12 +02:00
committed by GitHub

View File

@@ -197,8 +197,10 @@ SOCKET waitforclient(SOCKET server, long secs, long usecs)
struct pollfd pfd;
pfd.fd = server;
pfd.events = POLLIN;
pfd.revents = 0;
timeout = (secs * 1000000 + usecs / 1000);
timeout = (secs * 1000 + usecs / 1000);
if (poll(&pfd, 1, timeout) == -1)
return INVALID_SOCKET;