aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-08 21:01:05 +0300
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-12-08 21:01:05 +0300
commite3e94f86edc94b743af913b4b5b8b9af7c446fab (patch)
tree6462042f4d894d95b1aa889143ffff151867edf8
parentf0d241c6bb8fb3219736ec6ead20564bcea9a991 (diff)
downloadlibquotient-e3e94f86edc94b743af913b4b5b8b9af7c446fab.tar.gz
libquotient-e3e94f86edc94b743af913b4b5b8b9af7c446fab.zip
ConnectionData: stop the timer on destruction
...to prevent from trying to send requests after closing the connection.
-rw-r--r--lib/connectiondata.cpp6
1 files changed, 5 insertions, 1 deletions
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)
{