Merge pull request #1136 from mapbox/1069-annotations-threadsafe-followup

Make sure the app terminates correctly
This commit is contained in:
Konstantin Käfer
2015-03-27 17:09:11 +01:00

View File

@@ -137,6 +137,7 @@ void Map::start(bool startPaused) {
// Closes all open handles on the loop. This means that the loop will automatically terminate.
asyncRender.reset();
asyncUpdate.reset();
asyncInvoke.reset();
asyncTerminate.reset();
});
@@ -148,7 +149,6 @@ void Map::start(bool startPaused) {
processTasks();
});
asyncRender = util::make_unique<uv::async>(env->loop, [this] {
// Must be called in Map thread.
assert(Environment::currentlyOn(ThreadType::Map));