mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-10-21 07:46:54 +00:00
Windows compile fix
This commit is contained in:
1 parent
36db73b562
commit
fbbdc084a4
3 files changed
+6
-21
No files matched your search
@@ -71,13 +71,7 @@ void TCPClient(Client*c){
|
||||
}
|
||||
OnConnect(c);
|
||||
while (c->GetStatus() > -1)TCPRcv(c);
|
||||
#ifdef WIN32
|
||||
__try{
|
||||
#endif // WIN32
|
||||
OnDisconnect(c, c->GetStatus() == -2);
|
||||
#ifdef WIN32
|
||||
}__except(Handle(GetExceptionInformation(),Sec("OnDisconnect"))){}
|
||||
#endif // WIN32
|
||||
OnDisconnect(c, c->GetStatus() == -2);
|
||||
}
|
||||
void InitClient(Client*c){
|
||||
std::thread NewClient(TCPClient,c);
|
||||
|
||||
Reference in new issue
Block a user