From b323401a18cd8384ea90157feb876894af379998 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 26 Jan 2006 23:47:19 +0000 Subject: Fix bug with sending retries immediately. --- src/snmp-engine.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/snmp-engine.c b/src/snmp-engine.c index 896e8e4..e1bff30 100644 --- a/src/snmp-engine.c +++ b/src/snmp-engine.c @@ -291,16 +291,13 @@ check_req(rb_request* req, mstime when) /* See if it's timed out */ if(when >= req->timeout) - { -fprintf(stderr, "check_req timeout_req %lld %lld\n", when, req->timeout); timeout_req(req, when); - } if(!req->next_retry) return; /* Resend if necessary */ - if(when <= req->next_retry) + if(when >= req->next_retry) send_req(req, when); } -- cgit v1.2.3