Changeset 2327

Show
Ignore:
Timestamp:
11/26/07 06:07:47 (14 months ago)
Author:
markybob
Message:

tweak get_index_from_unique_id

Files:
2 modified

Legend:

Unmodified
Added
Removed
  • tags/deluge-0.5.6.96/src/deluge_core.cpp

    r2324 r2327  
    186186            if ((*M_torrents)[i].unique_ID == unique_ID) 
    187187                return i; 
     188        RAISE_INT(DelugeError, "No such unique_ID."); 
    188189    } 
    189190    catch(invalid_handle&) 
     
    195196    printf("unknown error on get_index_from_unique_ID. call batman.\n"); 
    196197    } 
    197     RAISE_INT(DelugeError, "No such unique_ID."); 
    198198} 
    199199 
  • trunk/src/deluge_core.cpp

    r2324 r2327  
    186186            if ((*M_torrents)[i].unique_ID == unique_ID) 
    187187                return i; 
     188        RAISE_INT(DelugeError, "No such unique_ID."); 
    188189    } 
    189190    catch(invalid_handle&) 
     
    195196    printf("unknown error on get_index_from_unique_ID. call batman.\n"); 
    196197    } 
    197     RAISE_INT(DelugeError, "No such unique_ID."); 
    198198} 
    199199