(trunk libT) #3932 "Assertion failed: (tab != NULL), function tr_torrentAvailability"
Looks like tab can be NULL from the Mac client when magnet links are involved and the Mac client doesn't know how many pieces are available, so that assertion's not appropriate.
This commit is contained in:
parent
2322b32591
commit
9220ad2300
|
@ -1455,16 +1455,13 @@ tr_torrentTrackersFree( tr_tracker_stat * trackers, int trackerCount )
|
|||
void
|
||||
tr_torrentAvailability( const tr_torrent * tor, int8_t * tab, int size )
|
||||
{
|
||||
assert( tr_isTorrent( tor ) );
|
||||
assert( tab != NULL );
|
||||
assert( size > 0 );
|
||||
|
||||
if( tr_isTorrent( tor ) && ( tab != NULL ) && ( size > 0 ) )
|
||||
{
|
||||
tr_torrentLock( tor );
|
||||
|
||||
tr_peerMgrTorrentAvailability( tor, tab, size );
|
||||
|
||||
tr_torrentUnlock( tor );
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
tr_torrentAmountFinished( const tr_torrent * tor,
|
||||
|
|
Loading…
Reference in New Issue