(trunk libT) fix 2.7x crash when dealing with webseeds

This commit is contained in:
Jordan Lee 2013-06-09 18:39:24 +00:00
parent 5ecb8352de
commit 30882e69b1
1 changed files with 1 additions and 1 deletions

View File

@ -1669,7 +1669,7 @@ cancelAllRequestsForBlock (tr_swarm * s,
{
tr_peer * p = peers[i];
if ((p != no_notify) && (p != NULL))
if ((p != no_notify) && tr_isPeerMsgs (p))
{
tr_historyAdd (&p->cancelsSentToPeer, tr_time (), 1);
tr_peerMsgsCancel (PEER_MSGS(p), block);