properly ref/unref the handle and run the loop again for shutdown purposes

This commit is contained in:
Konstantin Käfer
2014-10-01 13:26:49 +02:00
parent 8fcc74e253
commit d03b7aa31a
6 changed files with 21 additions and 10 deletions

View File

@@ -67,6 +67,9 @@ Map::~Map() {
glyphAtlas.reset();
style.reset();
fileSource.reset();
workers.reset();
uv_run(**loop, UV_RUN_DEFAULT);
}
uv::worker &Map::getWorker() {