Ignore:
Timestamp:
Dec 3, 2007, 4:51:22 PM (14 years ago)
Author:
charles
Message:

fix tyop

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/fdlimit.c

    r4044 r4046  
    255255
    256256        if( winner >= 0 ) {
    257             dbgmsg( "closing file '%s', slot #%d", gFd->open[winner].filename, winner );
    258             TrCloseFile( winner );
     257            if( fileIsOpen( &gFd->open[i] ) ) {
     258                dbgmsg( "closing file '%s', slot #%d", gFd->open[winner].filename, winner );
     259                TrCloseFile( winner );
     260            }
    259261        } else {
    260262            dbgmsg( "everything's full!  waiting for someone else to finish something" );
Note: See TracChangeset for help on using the changeset viewer.