mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-14 07:21:48 +00:00
More resilient fix to killing instances for now [skip ci]
This commit is contained in:
parent
26831d5ad4
commit
0d2d6a2c6b
@ -516,9 +516,6 @@ void Database::DeleteInstance(uint16 instance_id)
|
|||||||
{
|
{
|
||||||
std::string query;
|
std::string query;
|
||||||
|
|
||||||
query = StringFormat("DELETE FROM instance_list WHERE id=%u", instance_id);
|
|
||||||
QueryDatabase(query);
|
|
||||||
|
|
||||||
query = StringFormat("DELETE FROM instance_list_player WHERE id=%u", instance_id);
|
query = StringFormat("DELETE FROM instance_list_player WHERE id=%u", instance_id);
|
||||||
QueryDatabase(query);
|
QueryDatabase(query);
|
||||||
|
|
||||||
@ -606,6 +603,9 @@ void Database::PurgeExpiredInstances()
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (auto row = results.begin(); row != results.end(); ++row) {
|
for (auto row = results.begin(); row != results.end(); ++row) {
|
||||||
|
query = StringFormat("DELETE FROM instance_list WHERE id=%u", atoi(row[0]));
|
||||||
|
QueryDatabase(query);
|
||||||
|
|
||||||
DeleteInstance(atoi(row[0]));
|
DeleteInstance(atoi(row[0]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user