mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-27 06:55:54 -04:00
[Browser] Kill RakNet thread before return
This commit is contained in:
parent
1fc9dd4f93
commit
239c1aaebf
@ -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…
x
Reference in New Issue
Block a user