Changeset 14074


Ignore:
Timestamp:
Apr 28, 2013, 12:06:22 AM (8 years ago)
Author:
jordan
Message:

(libT) prevent possible oscillation in paused_easy_handles reported by vipjml in bug #1079 comment:27

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/web.c

    r14071 r14074  
    433433        {
    434434          CURL * handle;
    435           while ((handle = tr_list_pop_front (&paused_easy_handles)))
     435          tr_list * tmp;
     436
     437          /* swap paused_easy_handles to prevent oscillation
     438             between writeFunc this while loop */
     439          tmp = paused_easy_handles;
     440          paused_easy_handles = NULL;
     441
     442          while ((handle = tr_list_pop_front (&tmp)))
    436443            curl_easy_pause (handle, CURLPAUSE_CONT);
    437444        }
Note: See TracChangeset for help on using the changeset viewer.