mirror of
https://github.com/debauchee/barrier.git
synced 2024-12-23 11:02:21 +03:00
shortened poll() timeout.
This commit is contained in:
parent
ad15393732
commit
ddbb465540
@ -47,7 +47,7 @@ ISocket* CTCPListenSocket::accept()
|
||||
pfds[0].events = CNetwork::kPOLLIN;
|
||||
for (;;) {
|
||||
CThread::testCancel();
|
||||
const int status = CNetwork::poll(pfds, 1, 50);
|
||||
const int status = CNetwork::poll(pfds, 1, 10);
|
||||
if (status > 0 && (pfds[0].revents & CNetwork::kPOLLIN) != 0) {
|
||||
CNetwork::Address addr;
|
||||
CNetwork::AddressLength addrlen = sizeof(addr);
|
||||
|
Loading…
Reference in New Issue
Block a user