Changeset 7707 for trunk/gtk/tr-core.c


Ignore:
Timestamp:
Jan 13, 2009, 4:39:19 PM (13 years ago)
Author:
charles
Message:

(trunk libT) Remove tr_torrentNext() from the public libT API (wereHamster)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr-core.c

    r7464 r7707  
    12081208    /* always allow hibernation when all the torrents are paused */
    12091209    if( inhibit ) {
    1210         gboolean active = FALSE;
    1211         tr_session *  session = tr_core_session( core );
    1212         tr_torrent * tor = NULL;
    1213         while(( tor = tr_torrentNext( session, tor )))
    1214             if(( active = ( tr_torrentGetActivity( tor ) != TR_STATUS_STOPPED )))
    1215                 break;
    1216         if( !active )
     1210        tr_session * session = tr_core_session( core );
     1211
     1212        if( tr_sessionGetActiveTorrentCount( session ) == 0 )
    12171213            inhibit = FALSE;
    12181214    }
Note: See TracChangeset for help on using the changeset viewer.