input/curl: clear the "paused" flag before resuming

curl_easy_pause(CURLPAUSE_CONT) may have added enough data to go into
pause again.
This commit is contained in:
Max Kellermann 2011-09-16 08:50:39 +02:00
parent 856b0e6886
commit edffc56600

View File

@ -198,8 +198,8 @@ input_curl_resume(gpointer data)
struct input_curl *c = data; struct input_curl *c = data;
if (c->paused) { if (c->paused) {
curl_easy_pause(c->easy, CURLPAUSE_CONT);
c->paused = false; c->paused = false;
curl_easy_pause(c->easy, CURLPAUSE_CONT);
} }
return NULL; return NULL;