diff --git a/platform/qt/src/async_task.cpp b/platform/qt/src/async_task.cpp index cfad70d8d..c376c1c37 100644 --- a/platform/qt/src/async_task.cpp +++ b/platform/qt/src/async_task.cpp @@ -4,6 +4,8 @@ #include +#include + namespace mbgl { namespace util { @@ -20,6 +22,8 @@ void AsyncTask::Impl::maySend() { } void AsyncTask::Impl::runTask() { + assert(runLoop == RunLoop::Get()); + queued.clear(); task(); }