mirror of
https://github.com/TES3MP/TES3MP.git
synced 2025-09-28 07:32:00 -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++;
|
attempts++;
|
||||||
RakSleep(5);
|
RakSleep(5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
peer->Shutdown(0);
|
||||||
RakNet::RakPeerInterface::DestroyInstance(peer);
|
RakNet::RakPeerInterface::DestroyInstance(peer);
|
||||||
return time;
|
return time;
|
||||||
}
|
}
|
||||||
@ -144,7 +146,7 @@ ServerExtendedData getExtendedData(const char *addr, unsigned short port)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
peer->Shutdown(1);
|
peer->Shutdown(0);
|
||||||
RakSleep(10);
|
RakSleep(10);
|
||||||
RakNet::RakPeerInterface::DestroyInstance(peer);
|
RakNet::RakPeerInterface::DestroyInstance(peer);
|
||||||
return data;
|
return data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user