mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
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:
parent
aa843ee978
commit
46ee5598f5
2 changed files with 0 additions and 2 deletions
|
@ -162,7 +162,6 @@ Session::Session(
|
||||||
, _data(std::make_shared<SessionData>(this))
|
, _data(std::make_shared<SessionData>(this))
|
||||||
, _thread(thread)
|
, _thread(thread)
|
||||||
, _sender([=] { needToResumeAndSend(); }) {
|
, _sender([=] { needToResumeAndSend(); }) {
|
||||||
_timeouter.callEach(1000);
|
|
||||||
refreshOptions();
|
refreshOptions();
|
||||||
watchDcKeyChanges();
|
watchDcKeyChanges();
|
||||||
watchDcOptionsChanges();
|
watchDcOptionsChanges();
|
||||||
|
|
|
@ -211,7 +211,6 @@ private:
|
||||||
|
|
||||||
bool _ping = false;
|
bool _ping = false;
|
||||||
|
|
||||||
base::Timer _timeouter;
|
|
||||||
base::Timer _sender;
|
base::Timer _sender;
|
||||||
|
|
||||||
rpl::lifetime _lifetime;
|
rpl::lifetime _lifetime;
|
||||||
|
|
Loading…
Add table
Reference in a new issue