Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed race condition in http_client_unpause which caused bug #3843
  • Loading branch information
matthera authored and perexg committed Nov 17, 2016
1 parent 9b180ac commit ca5f094
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/httpc.c
Expand Up @@ -199,11 +199,12 @@ void
http_client_unpause( http_client_t *hc )
{
if (hc->hc_pause) {
int pevents_pause = hc->hc_pevents_pause;
tvhtrace(LS_HTTPC, "%04X: resuming input", shortid(hc));
http_client_poll_dir(hc, hc->hc_pevents_pause & TVHPOLL_IN,
hc->hc_pevents_pause & TVHPOLL_OUT);
hc->hc_pause = 0;
hc->hc_pevents_pause = 0;
http_client_poll_dir(hc, pevents_pause & TVHPOLL_IN,
pevents_pause & TVHPOLL_OUT);
}
}

Expand Down

0 comments on commit ca5f094

Please sign in to comment.