From e3e94f86edc94b743af913b4b5b8b9af7c446fab Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sun, 8 Dec 2019 21:01:05 +0300 Subject: ConnectionData: stop the timer on destruction ...to prevent from trying to send requests after closing the connection. --- lib/connectiondata.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/connectiondata.cpp b/lib/connectiondata.cpp index e2a0f06f..94cab29b 100644 --- a/lib/connectiondata.cpp +++ b/lib/connectiondata.cpp @@ -86,7 +86,11 @@ ConnectionData::ConnectionData(QUrl baseUrl) }); } -ConnectionData::~ConnectionData() = default; +ConnectionData::~ConnectionData() +{ + d->rateLimiter.disconnect(); + d->rateLimiter.stop(); +} void ConnectionData::submit(BaseJob* job) { -- cgit v1.2.3