[Client] Fix the request loop
8bec37c4
caused the non-flood mode to flood.
This commit is contained in:
parent
31bea165c5
commit
b22a42a524
|
@ -101,11 +101,12 @@ int main(int argc, char *argv[])
|
||||||
|
|
||||||
create_socket() ;
|
create_socket() ;
|
||||||
|
|
||||||
while (owl_run)
|
send_request() ;
|
||||||
|
while (owl_run && options.flood_delay >= 0)
|
||||||
{
|
{
|
||||||
send_request() ;
|
owl_msleep(options.flood_delay) ;
|
||||||
if (options.flood_delay >= 0 && owl_run)
|
if (owl_run) // owl_run can have been set to false during the sleep
|
||||||
owl_msleep(options.flood_delay) ;
|
send_request() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
close(sockfd) ;
|
close(sockfd) ;
|
||||||
|
|
Loading…
Reference in New Issue