[Qt] Assert that we run the async on the right loop

This commit is contained in:
Thiago Marcos P. Santos
2016-05-27 15:16:50 +03:00
parent 6cfee1db7c
commit d0561c5d6c

View File

@@ -4,6 +4,8 @@
#include <mbgl/util/run_loop.hpp>
#include <cassert>
namespace mbgl {
namespace util {
@@ -20,6 +22,8 @@ void AsyncTask::Impl::maySend() {
}
void AsyncTask::Impl::runTask() {
assert(runLoop == RunLoop::Get());
queued.clear();
task();
}