mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +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:
parent
0ac302b302
commit
a1805875ee
1 changed files with 11 additions and 1 deletions
|
@ -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 );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue