summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-01-30 21:44:51 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-01-30 21:44:51 +0100
commit5ac1ffce1168c4e3409e6667ff30285bfbc82bde (patch)
tree09b4ab975d5bfd221aa1341d722524b97764fe4f /src/modules/extra
parent407f10664a5f8ead87967ca52fd6fcb87d09189a (diff)
Allow Timers to delete themselves in Tick()
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_pgsql.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index 1ed5be6f0..b3b7d43df 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -593,6 +593,7 @@ bool ReconnectTimer::Tick(time_t time)
{
mod->retimer = NULL;
mod->ReadConf();
+ delete this;
return false;
}