diff options
author | Stef Walter <stef@memberwebs.com> | 2006-01-26 23:47:19 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2006-01-26 23:47:19 +0000 |
commit | b323401a18cd8384ea90157feb876894af379998 (patch) | |
tree | a11451aaaaeb63a0a725a1cd5987b32f4d1e1d79 | |
parent | 24cd5a603c74e4733eeaf61c18c06558e1fd28f4 (diff) |
Fix bug with sending retries immediately.
-rw-r--r-- | src/snmp-engine.c | 5 |
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); } |