mirror of
https://github.com/transmission/transmission
synced 2025-03-09 13:50:00 +00:00
Don't try to generate a client string for a peer before we have their handshake.
This commit is contained in:
parent
58333068e8
commit
0cb6a81077
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ void tr_peerDestroy( tr_peer_t * peer )
|
|||
const char *
|
||||
tr_peerClient( tr_peer_t * peer )
|
||||
{
|
||||
if( NULL == peer->client )
|
||||
if( NULL == peer->client && PEER_STATUS_HANDSHAKE < peer->status )
|
||||
{
|
||||
peer->client = tr_clientForId( peer->id );
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue