From 1bfc728bb21a5a68f1fe9dbe8927fa50166a6994 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Sat, 28 Oct 2017 16:42:11 -0700 Subject: [PATCH] Always wait for the wake time in the background thread --- src/context.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/context.cpp b/src/context.cpp index 86ba2b0..93cd570 100644 --- a/src/context.cpp +++ b/src/context.cpp @@ -564,8 +564,8 @@ void ContextImpl::backgroundProc() { auto mult = (now-waketime + interval-std::chrono::milliseconds(1)) / interval; waketime += interval * mult; - mWakeThread.wait_until(wakelock, waketime + basetime); } + mWakeThread.wait_until(wakelock, waketime + basetime); } wakelock.unlock(); -- 2.11.4.GIT