Torrent example: don't try to announce to an empty URL
Task-number: QTBUG-109798 Task-number: QTBUG-110622 Change-Id: I3603232eb094387388da6421bf5525a3ba54fe03 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 6c90c04fb94ea229a5b7d2328fe1b6b3da99d2ae) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
c662fb0be8
commit
e918efcd75
@ -54,6 +54,8 @@ void TrackerClient::timerEvent(QTimerEvent *event)
|
|||||||
|
|
||||||
void TrackerClient::fetchPeerList()
|
void TrackerClient::fetchPeerList()
|
||||||
{
|
{
|
||||||
|
if (metaInfo.announceUrl().isEmpty())
|
||||||
|
return;
|
||||||
QUrl url(metaInfo.announceUrl());
|
QUrl url(metaInfo.announceUrl());
|
||||||
|
|
||||||
// Base the query on announce url to include a passkey (if any)
|
// Base the query on announce url to include a passkey (if any)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user