mirror of
https://github.com/anope/anope.git
synced 2026-06-25 02:06:37 +02:00
irc2sql: fix crash on shutdown with no sql
This commit is contained in:
@@ -4,7 +4,8 @@ void IRC2SQL::OnShutdown()
|
||||
{
|
||||
// TODO: test if we really have to use blocking query here
|
||||
// (sometimes m_mysql get unloaded before the other thread executed all queries)
|
||||
SQL::Result r = this->sql->RunQuery(SQL::Query("CALL " + prefix + "OnShutdown()"));
|
||||
if (this->sql)
|
||||
SQL::Result r = this->sql->RunQuery(SQL::Query("CALL " + prefix + "OnShutdown()"));
|
||||
quitting = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user