1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 09:37:56 +00:00

try to fix the platform.c:278 issue reported by dave in http://transmission.m0k.org/forum/viewtopic.php?t=2949

This commit is contained in:
Charles Kerr 2007-11-16 20:41:41 +00:00
parent 0ac302b302
commit a1805875ee

View file

@ -1046,6 +1046,16 @@ tr_torrentStart( tr_torrent * tor )
tr_globalUnlock( tor->handle ); tr_globalUnlock( tor->handle );
} }
static void
torrentRecheckDoneImpl( void * vtor )
{
tr_torrentRecheckCompleteness( vtor );
}
static void
torrentRecheckDoneCB( tr_torrent * tor )
{
tr_runInEventThread( tor->handle, torrentRecheckDoneImpl, tor );
}
void void
tr_torrentRecheck( tr_torrent * tor ) tr_torrentRecheck( tr_torrent * tor )
{ {
@ -1055,7 +1065,7 @@ tr_torrentRecheck( tr_torrent * tor )
tor->uncheckedPieces = tr_bitfieldNew( tor->info.pieceCount ); tor->uncheckedPieces = tr_bitfieldNew( tor->info.pieceCount );
tr_bitfieldAddRange( tor->uncheckedPieces, 0, tor->info.pieceCount ); tr_bitfieldAddRange( tor->uncheckedPieces, 0, tor->info.pieceCount );
tr_ioRecheckAdd( tor, tr_torrentRecheckCompleteness ); tr_ioRecheckAdd( tor, torrentRecheckDoneCB );
tr_globalUnlock( tor->handle ); tr_globalUnlock( tor->handle );
} }