1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-29 22:45:34 +00:00

[Browser] Kill RakNet thread before return

This commit is contained in:
Koncord 2017-01-31 00:25:34 +08:00
parent 1fc9dd4f93
commit 239c1aaebf

View file

@ -46,6 +46,8 @@ unsigned int PingRakNetServer(const char *addr, unsigned short port)
attempts++;
RakSleep(5);
}
peer->Shutdown(0);
RakNet::RakPeerInterface::DestroyInstance(peer);
return time;
}
@ -144,7 +146,7 @@ ServerExtendedData getExtendedData(const char *addr, unsigned short port)
}
}
peer->Shutdown(1);
peer->Shutdown(0);
RakSleep(10);
RakNet::RakPeerInterface::DestroyInstance(peer);
return data;