(trunk libT) fix 2.7x crash when dealing with webseeds
This commit is contained in:
parent
5ecb8352de
commit
30882e69b1
|
@ -1669,7 +1669,7 @@ cancelAllRequestsForBlock (tr_swarm * s,
|
||||||
{
|
{
|
||||||
tr_peer * p = peers[i];
|
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_historyAdd (&p->cancelsSentToPeer, tr_time (), 1);
|
||||||
tr_peerMsgsCancel (PEER_MSGS(p), block);
|
tr_peerMsgsCancel (PEER_MSGS(p), block);
|
||||||
|
|
Loading…
Reference in New Issue