Check for local server before detecting devices from hardware and tweak timeouts to make network connections faster

This commit is contained in:
Adam Honse committed 2020-06-28 21:08:59 -05:00
1 parent 4c6429ae76
commit 96af869d79
4 files changed
+51 -16

No files matched your search

-2
View File
@@ -284,7 +284,6 @@ int NetworkServer::accept_select(int sockfd, struct sockaddr *addr, socklen_t *a
}
else if(rv == 0)
{
std::this_thread::sleep_for(100ms);
continue;
}
else
@@ -316,7 +315,6 @@ int NetworkServer::recv_select(SOCKET s, char *buf, int len, int flags)
}
else if(rv == 0)
{
std::this_thread::sleep_for(100ms);
continue;
}
else