From b22a42a524214ec8cc1f397c833efdad73793f7b Mon Sep 17 00:00:00 2001 From: Matteo Cypriani Date: Fri, 26 Aug 2011 15:54:46 +0200 Subject: [PATCH] [Client] Fix the request loop 8bec37c4 caused the non-flood mode to flood. --- owlps-client/owlps-client.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/owlps-client/owlps-client.c b/owlps-client/owlps-client.c index 794bb10..2103a8b 100644 --- a/owlps-client/owlps-client.c +++ b/owlps-client/owlps-client.c @@ -101,11 +101,12 @@ int main(int argc, char *argv[]) create_socket() ; - while (owl_run) + send_request() ; + while (owl_run && options.flood_delay >= 0) { - send_request() ; - if (options.flood_delay >= 0 && owl_run) - owl_msleep(options.flood_delay) ; + owl_msleep(options.flood_delay) ; + if (owl_run) // owl_run can have been set to false during the sleep + send_request() ; } close(sockfd) ;