mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-27 23:02:26 +00:00
Fix for loginserver crashes
This commit is contained in:
parent
15ff0bf5c3
commit
72e0320509
@ -256,13 +256,15 @@ void ServerManager::DestroyServerByName(std::string l_name, std::string s_name,
|
|||||||
while (iter != world_servers.end()) {
|
while (iter != world_servers.end()) {
|
||||||
if ((*iter).get() == ignore) {
|
if ((*iter).get() == ignore) {
|
||||||
++iter;
|
++iter;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((*iter)->GetLongName().compare(l_name) == 0 && (*iter)->GetShortName().compare(s_name) == 0) {
|
if ((*iter)->GetLongName().compare(l_name) == 0 && (*iter)->GetShortName().compare(s_name) == 0) {
|
||||||
(*iter)->GetConnection()->Handle()->Disconnect();
|
(*iter)->GetConnection()->Handle()->Disconnect();
|
||||||
iter = world_servers.erase(iter);
|
iter = world_servers.erase(iter);
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
++iter;
|
++iter;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user