Ignore:
Timestamp:
Dec 11, 2006, 11:12:09 PM (16 years ago)
Author:
joshe
Message:

Avoid doing some potentially bogus things when stopping and deleting a torrent.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr_backend.c

    r760 r1190  
    276276tr_backend_torrents_stopped(TrBackend *back) {
    277277  GList *ii, *list;
     278  tr_stat_t *st;
    278279  gboolean ret = TRUE;
    279280
     
    281282
    282283  list = g_list_copy(back->torrents);
    283   for(ii = list; NULL != ii; ii = ii->next)
    284     if(!(TR_STATUS_PAUSE & tr_torrent_stat_polite(ii->data)->status))
     284  for(ii = list; NULL != ii; ii = ii->next) {
     285    st = tr_torrent_stat_polite(ii->data);
     286    if(NULL == st || !(TR_STATUS_PAUSE & st->status))
    285287      ret = FALSE;
     288  }
    286289  g_list_free(list);
    287290
Note: See TracChangeset for help on using the changeset viewer.