Fetch packets outside of replay proxy, so we can serve other commands

This commit is contained in:
baldurk
2016-08-02 17:23:10 +02:00
parent 45de1f2b5f
commit 5a6a200432
3 changed files with 16 additions and 10 deletions
+12 -1
View File
@@ -308,8 +308,19 @@ void RenderDoc::BecomeRemoteServer(const char *listenhost, uint16_t port, volati
while(client)
{
if(!proxy->Tick() || killReplay)
int packet;
Serialiser *data = NULL;
if(!RecvPacket(client, packet, &data))
{
SAFE_DELETE(data);
SAFE_DELETE(client);
break;
}
if(!proxy->Tick(packet, data) || killReplay)
{
SAFE_DELETE(data);
SAFE_DELETE(client);
}
}