We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27f577f commit b4040edCopy full SHA for b4040ed
1 file changed
test-app/runtime/src/main/cpp/Timers.cpp
@@ -186,8 +186,9 @@ void Timers::Destroy() {
186
bufferFull.notify_one();
187
taskReady.notify_all();
188
watcher_.join();
189
- auto mainLooper = Runtime::GetMainLooper();
190
- ALooper_removeFd(mainLooper, fd_[0]);
+ // remove the fd from this instance's looper - on worker threads this is
+ // the worker looper, not the main one
191
+ ALooper_removeFd(looper_, fd_[0]);
192
close(fd_[0]);
193
timerMap_.clear();
194
ALooper_release(looper_);
0 commit comments