1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 01:27:28 +00:00

I think this one-line change may fix all the "Transmission 0.95 ate my data, corrupted my hard drive, and killed my cat!" complaints

This commit is contained in:
Charles Kerr 2007-12-09 15:26:27 +00:00
parent 33f284ead1
commit ffe9e52e14
2 changed files with 4 additions and 1 deletions

View file

@ -254,7 +254,7 @@ tr_fdFileCheckout( const char * filename, int write )
}
if( winner >= 0 ) {
if( fileIsOpen( &gFd->open[i] ) ) {
if( fileIsOpen( &gFd->open[winner] ) ) {
dbgmsg( "closing file '%s', slot #%d", gFd->open[winner].filename, winner );
TrCloseFile( winner );
}

View file

@ -228,6 +228,9 @@ tr_msg( const char * file, int line, int level, const char * fmt, ... )
*messageQueueTail = newmsg;
messageQueueTail = &newmsg->next;
if( strstr( file, "fdlimit.c" ) )
fprintf( stderr, "%s\n", text );
}
else
{