mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-28 05:34:47 +01:00
Properly abort the connections on timeout
This commit is contained in:
parent
4653f771a6
commit
1efb4e494d
@ -68,7 +68,7 @@ void NetworkTimeout::timerEvent(QTimerEvent *ev)
|
|||||||
return;
|
return;
|
||||||
QNetworkReply *reply = static_cast<QNetworkReply*>(parent());
|
QNetworkReply *reply = static_cast<QNetworkReply*>(parent());
|
||||||
if (reply->isRunning())
|
if (reply->isRunning())
|
||||||
reply->close();
|
reply->abort();
|
||||||
_timer.stop();
|
_timer.stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user