mirror of
https://github.com/transmission/transmission
synced 2024-12-25 17:17:31 +00:00
(trunk libT) fix refcount error in the new peer-io refcount code
This commit is contained in:
parent
cd7b38e007
commit
73d32850ed
1 changed files with 2 additions and 2 deletions
|
@ -1258,8 +1258,8 @@ myHandshakeDoneCB( tr_handshake * handshake,
|
|||
}
|
||||
|
||||
peer->port = port;
|
||||
peer->io = tr_handshakeStealIO( handshake );
|
||||
tr_peerIoRef( peer->io ); /* balanced by the unref in peerDestructor() */
|
||||
peer->io = tr_handshakeStealIO( handshake ); /* this steals its refcount too, which is
|
||||
balanced by our unref in peerDestructor() */
|
||||
tr_peerIoSetParent( peer->io, t->tor->bandwidth );
|
||||
tr_peerMsgsNew( t->tor, peer, peerCallbackFunc, t, &peer->msgsTag );
|
||||
|
||||
|
|
Loading…
Reference in a new issue