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:
parent
33f284ead1
commit
ffe9e52e14
2 changed files with 4 additions and 1 deletions
|
@ -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 );
|
||||
}
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue