From 5ac1ffce1168c4e3409e6667ff30285bfbc82bde Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Thu, 30 Jan 2014 21:44:51 +0100 Subject: Allow Timers to delete themselves in Tick() --- src/modules/extra/m_pgsql.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/modules/extra/m_pgsql.cpp') 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; } -- cgit v1.2.3