Use the timeout in poll.

This commit is contained in:
czeidler
2012-04-29 16:53:40 +12:00
parent 80a215135a
commit 6eb2e6b47f
@@ -258,7 +258,7 @@ BAbstractSocket::_WaitFor(int flags, bigtime_t timeout) const
entry.fd = Socket();
entry.events = flags;
int result = poll(&entry, 1, -1);
int result = poll(&entry, 1, millis);
if (result < 0)
return errno;
if (result == 0)