summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}