diff options
author | Vladimir Byko-Ianko <v.bykoianko@corp.mail.ru> | 2015-08-03 15:33:27 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:58:55 +0300 |
commit | 49c3195039cfb8d114801f1e654c932169136f3d (patch) | |
tree | fa8ad6b2ca46f07730a90dc846ea34bc7386079e /routing | |
parent | 41b44a8c67b097ee3ddb27ff99ecc301651a0998 (diff) |
Rebase fix commit.
Diffstat (limited to 'routing')
-rw-r--r-- | routing/routing_session.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/routing/routing_session.cpp b/routing/routing_session.cpp index 22b0cf1ef4..8303a49051 100644 --- a/routing/routing_session.cpp +++ b/routing/routing_session.cpp @@ -310,22 +310,4 @@ string RoutingSession::GetTurnNotificationsLocale() const UNUSED_VALUE(guard); return m_turnsSound.GetLocale(); } - -void RoutingSession::ResetRoutingWatchdogTimer() -{ - if (m_routingWatchdog) - { - m_routingWatchdog->Cancel(); - m_routingWatchdog->WaitForCompletion(); - m_routingWatchdog.reset(); - } -} - -void RoutingSession::InitRoutingWatchdogTimer(uint32_t timeoutSec) -{ - ASSERT_NOT_EQUAL(0, timeoutSec, ()); - ASSERT(nullptr == m_routingWatchdog, ()); - - m_routingWatchdog = make_unique<DeferredTask>([this](){ m_router->ClearState(); }, seconds(timeoutSec)); -} } // namespace routing |