From b3b86f9be4187fc82f34188c627c1466c79ad041 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Mon, 4 Jul 2016 20:33:07 +0300 Subject: [PATCH] [android] Fix hang when calling Timer::start() twice Calling start() from the callback was making the timer effectively stop. --- platform/android/src/timer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/platform/android/src/timer.cpp b/platform/android/src/timer.cpp index 741005df2..81cf0a68b 100644 --- a/platform/android/src/timer.cpp +++ b/platform/android/src/timer.cpp @@ -29,7 +29,6 @@ public: } void stop() { - task = nullptr; loop->removeRunnable(this); } @@ -47,8 +46,8 @@ public: } void runTask() override { - task(); reschedule(); + task(); } private: