]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
[BUG] fix broken health-checks since switch to timeval
authorWilly Tarreau <w@1wt.eu>
Mon, 14 May 2007 01:40:11 +0000 (03:40 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 14 May 2007 01:40:11 +0000 (03:40 +0200)
Health-checks were broken because of a return which was unexpectedly removed.

src/checks.c

index 91dd5319d9b5a733b7dd947544fb312e5cacbc94..4c8a009718be2301cd47fb7fb0560c7609e3d21a 100644 (file)
@@ -410,6 +410,7 @@ void process_chk(struct task *t, struct timeval *next)
                                                tv_ms_add(&t->expire, &now, s->inter);
                                                task_queue(t);  /* restore t to its place in the task list */
                                                *next = t->expire;
+                                               return;
                                        }
                                        else if (errno != EALREADY && errno != EISCONN && errno != EAGAIN) {
                                                s->result = -1;    /* a real error */