From 78024fa6894014f890248ca0021df01879de5cf9 Mon Sep 17 00:00:00 2001 From: Ryan Date: Fri, 7 Aug 2009 14:10:40 +0200 Subject: [PATCH] Remove extra ev_timer_stop() in src/dns.cc --- src/dns.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dns.cc b/src/dns.cc index eb75186eb3..4843f2441e 100644 --- a/src/dns.cc +++ b/src/dns.cc @@ -26,10 +26,7 @@ set_timeout () ev_timer_stop(EV_DEFAULT_UC_ &timer_watcher); - if (!dns_active(NULL)) { - ev_timer_stop(EV_DEFAULT_UC_ &timer_watcher); - return; - } + if (!dns_active(NULL)) return; if (wait >= 0) { ev_timer_set(&timer_watcher, (double)wait, 0.0);