1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 04:26:37 +02:00

If using db_flatfile:fork, don't allow multiple saves to happen at one time on shutdown/restart wait for any pending saves to finish

This commit is contained in:
Adam
2013-12-26 16:08:56 -05:00
parent 0c9750a22b
commit 9bf9cfcf5e
2 changed files with 40 additions and 3 deletions
+1 -1
View File
@@ -139,8 +139,8 @@ void Anope::HandleSignal()
Log() << "Received signal " << Signal << ", exiting.";
Anope::QuitReason = Anope::string("Services terminating via signal ") + stringify(Signal);
#endif
Anope::SaveDatabases();
Anope::Quitting = true;
Anope::SaveDatabases();
break;
}