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) ;