mirror of
https://github.com/curl/curl.git
synced 2026-08-02 15:40:32 +03:00
rtspd: sync up sleep loop with sws
Check for `!got_exit_signal` as part of the `while()` expression, instead of doing it after calling `curlx_wait_ms()`. To simplify and improve consistency with rest of code. Follow-up to0653fa107fFollow-up to123c92c904Closes #22006
This commit is contained in:
parent
d9ea8cdcfa
commit
945938de10
1 changed files with 1 additions and 3 deletions
|
|
@ -968,11 +968,9 @@ static int rtspd_send_doc(curl_socket_t sock, struct rtspd_httprequest *req)
|
|||
if(!strcmp("wait", command)) {
|
||||
logmsg("Told to sleep for %d seconds", num);
|
||||
quarters = num * 4;
|
||||
while(quarters > 0) {
|
||||
while((quarters > 0) && !got_exit_signal) {
|
||||
quarters--;
|
||||
res = curlx_wait_ms(250);
|
||||
if(got_exit_signal)
|
||||
break;
|
||||
if(res) {
|
||||
/* should not happen */
|
||||
int sockerr = SOCKERRNO;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue