1
0
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:
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; 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();
} }