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:
parent
1fc9dd4f93
commit
239c1aaebf
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue