diff options
Diffstat (limited to 'routing/router_delegate.hpp')
-rw-r--r-- | routing/router_delegate.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routing/router_delegate.hpp b/routing/router_delegate.hpp index f2373c816e..42c892ad95 100644 --- a/routing/router_delegate.hpp +++ b/routing/router_delegate.hpp @@ -35,8 +35,8 @@ public: RouterDelegate(); /// Set routing progress. Waits current progress status from 0 to 100. - void OnProgress(float progress) const { m_progressCallback(progress); } - void OnPointCheck(m2::PointD const & point) const { m_pointCallback(point); } + void OnProgress(float progress) const { if (!IsCancelled()) m_progressCallback(progress); } + void OnPointCheck(m2::PointD const & point) const { if (!IsCancelled()) m_pointCallback(point); } void SetProgressCallback(TProgressCallback const & progressCallback); void SetPointCheckCallback(TPointCheckCallback const & pointCallback); |