Remove dangling timer in MTP Session

Commit bdc7f4114f got rid of
_timeouter's callback without removing the timer that still fires
every second.
This commit is contained in:
Loïc Molinari 2021-04-11 19:23:14 +02:00 committed by John Preston
parent aa843ee978
commit 46ee5598f5
2 changed files with 0 additions and 2 deletions

View File

@ -162,7 +162,6 @@ Session::Session(
, _data(std::make_shared<SessionData>(this))
, _thread(thread)
, _sender([=] { needToResumeAndSend(); }) {
_timeouter.callEach(1000);
refreshOptions();
watchDcKeyChanges();
watchDcOptionsChanges();

View File

@ -211,7 +211,6 @@ private:
bool _ping = false;
base::Timer _timeouter;
base::Timer _sender;
rpl::lifetime _lifetime;