summaryrefslogtreecommitdiff
path: root/include/modules/dns.h
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 /include/modules/dns.h
parent407f10664a5f8ead87967ca52fd6fcb87d09189a (diff)
Allow Timers to delete themselves in Tick()
Diffstat (limited to 'include/modules/dns.h')
-rw-r--r--include/modules/dns.h1
1 files changed, 1 insertions, 0 deletions
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;
}
};