[android] Fix hang when calling Timer::start() twice

Calling start() from the callback was making the timer
effectively stop.
This commit is contained in:
Thiago Marcos P. Santos
2016-07-04 20:33:07 +03:00
parent e579199ac1
commit b3b86f9be4

View File

@@ -29,7 +29,6 @@ public:
}
void stop() {
task = nullptr;
loop->removeRunnable(this);
}
@@ -47,8 +46,8 @@ public:
}
void runTask() override {
task();
reschedule();
task();
}
private: