Add an optional timeout to Socket::AcceptClient

* This is needed since sometimes on tests a localhost socket won't immediately
  be available to accept()
This commit is contained in:
baldurk
2019-01-17 17:51:07 +00:00
parent 5d9d77f361
commit d64ad19f16
6 changed files with 18 additions and 10 deletions
+1 -1
View File
@@ -895,7 +895,7 @@ void RenderDoc::BecomeRemoteServer(const char *listenhost, uint16_t port,
while(!killReplay())
{
Network::Socket *client = sock->AcceptClient(false);
Network::Socket *client = sock->AcceptClient(0);
if(activeClientData && activeClientData->killServer)
break;