Don't try to generate a client string for a peer before we have their handshake.

This commit is contained in:
Josh Elsasser 2007-04-03 18:34:55 +00:00
parent 58333068e8
commit 0cb6a81077
1 changed files with 1 additions and 1 deletions

View File

@ -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 );
}