summaryrefslogtreecommitdiff
path: root/src/snmp-engine.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2006-01-26 23:47:19 +0000
committerStef Walter <stef@memberwebs.com>2006-01-26 23:47:19 +0000
commitb323401a18cd8384ea90157feb876894af379998 (patch)
treea11451aaaaeb63a0a725a1cd5987b32f4d1e1d79 /src/snmp-engine.c
parent24cd5a603c74e4733eeaf61c18c06558e1fd28f4 (diff)
Fix bug with sending retries immediately.
Diffstat (limited to 'src/snmp-engine.c')
-rw-r--r--src/snmp-engine.c5
1 files changed, 1 insertions, 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);
}