1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 03:35:53 +01:00

Properly abort the connections on timeout

This commit is contained in:
Martin Tůma 2022-08-17 01:50:24 +02:00
parent 4653f771a6
commit 1efb4e494d

View File

@ -68,7 +68,7 @@ void NetworkTimeout::timerEvent(QTimerEvent *ev)
return;
QNetworkReply *reply = static_cast<QNetworkReply*>(parent());
if (reply->isRunning())
reply->close();
reply->abort();
_timer.stop();
}