Implemented correct windows socket cleanup
Resolves HerculesWS/Hercules#1513 Thanks to @mkbu95 for bringing this up
This commit is contained in:
parent
4ed035b036
commit
b5de7df013
@ -1218,6 +1218,13 @@ void socket_final(void)
|
||||
aFree(session[0]->session_data);
|
||||
aFree(session[0]);
|
||||
session[0] = NULL;
|
||||
|
||||
#ifdef WIN32
|
||||
// Shut down windows networking
|
||||
if( WSACleanup() != 0 ){
|
||||
ShowError("socket_final: WinSock could not be cleaned up! %s\n", error_msg() );
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/// Closes a socket.
|
||||
|
Loading…
x
Reference in New Issue
Block a user