mirror of
https://github.com/transmission/transmission
synced 2024-12-27 18:18:10 +00:00
#593: 1.01 crash
This commit is contained in:
parent
24b6549a76
commit
e7163a5433
1 changed files with 2 additions and 7 deletions
|
@ -1854,14 +1854,9 @@ tr_peerMsgsNew( struct tr_torrent * torrent,
|
||||||
m->incoming.block = evbuffer_new( );
|
m->incoming.block = evbuffer_new( );
|
||||||
m->outBlock = evbuffer_new( );
|
m->outBlock = evbuffer_new( );
|
||||||
m->peerAllowedPieces = NULL;
|
m->peerAllowedPieces = NULL;
|
||||||
m->clientAllowedPieces = NULL;
|
|
||||||
m->clientSuggestedPieces = NULL;
|
|
||||||
*setme = tr_publisherSubscribe( m->publisher, func, userData );
|
|
||||||
|
|
||||||
if ( tr_peerIoSupportsFEXT( m->io ) ) {
|
|
||||||
m->clientAllowedPieces = tr_bitfieldNew( m->torrent->info.pieceCount );
|
m->clientAllowedPieces = tr_bitfieldNew( m->torrent->info.pieceCount );
|
||||||
m->clientSuggestedPieces = tr_bitfieldNew( m->torrent->info.pieceCount );
|
m->clientSuggestedPieces = tr_bitfieldNew( m->torrent->info.pieceCount );
|
||||||
}
|
*setme = tr_publisherSubscribe( m->publisher, func, userData );
|
||||||
|
|
||||||
tr_peerIoSetTimeoutSecs( m->io, 150 ); /* timeout after N seconds of inactivity */
|
tr_peerIoSetTimeoutSecs( m->io, 150 ); /* timeout after N seconds of inactivity */
|
||||||
tr_peerIoSetIOFuncs( m->io, canRead, didWrite, gotError, m );
|
tr_peerIoSetIOFuncs( m->io, canRead, didWrite, gotError, m );
|
||||||
|
|
Loading…
Reference in a new issue