Fixed a possible crash when restarting / stopping the server.
git-svn-id: http://mc-server.googlecode.com/svn/trunk@632 0a769ca7-a7f5-676a-18bf-c427514a06d6
This commit is contained in:
parent
c2f340d309
commit
3943697dcf
@ -607,6 +607,7 @@ void cServer::Shutdown()
|
||||
cCSLock Lock(m_CSClients);
|
||||
for( ClientList::iterator itr = m_Clients.begin(); itr != m_Clients.end(); ++itr )
|
||||
{
|
||||
(*itr)->Destroy();
|
||||
delete *itr;
|
||||
}
|
||||
m_Clients.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user