[core] Do the MapContext::cleanup() synchronously

This used to be async assuming the libuv behavior of holding the
main loop until all the messages are processed and also for avoiding
a deadlock at exit that no longer exits.

Now that we support multiple main loops implementation on different
platforms, we do the cleanup synchronously to make sure all the
platforms have the same behavior at exit.

Fixes #4631
This commit is contained in:
Thiago Marcos P. Santos
2016-04-12 19:24:34 +03:00
parent 24b4b1b514
commit 2d580364a6

View File

@@ -31,7 +31,7 @@ Map::Map(View& view_, FileSource& fileSource, MapMode mapMode, GLContextMode con
Map::~Map() {
resume();
context->invoke(&MapContext::cleanup);
context->invokeSync(&MapContext::cleanup);
}
void Map::pause() {