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
@@ -377,7 +377,7 @@ void RenderDoc::TargetControlServerThread(Network::Socket *sock)
while(!RenderDoc::Inst().m_TargetControlThreadShutdown)
{
Network::Socket *client = sock->AcceptClient(false);
Network::Socket *client = sock->AcceptClient(0);
if(client == NULL)
{