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() --- include/modules/dns.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/modules') diff --git a/include/modules/dns.h b/include/modules/dns.h index 905e52a34..7f863fcca 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -185,6 +185,7 @@ namespace DNS Query rr(*this); rr.error = ERROR_TIMEDOUT; this->OnError(&rr); + delete this; return false; } }; -- cgit v1.3.1-10-gc9f91