diff --git a/src/mbgl/map/map.cpp b/src/mbgl/map/map.cpp index 1cebb97db..ea4115f05 100644 --- a/src/mbgl/map/map.cpp +++ b/src/mbgl/map/map.cpp @@ -225,12 +225,12 @@ void Map::stop(std::function callback) { } void Map::run() { -#ifndef NDEBUG if (mode == Mode::None) { +#ifndef NDEBUG mapThread = mainThread; +#endif mode = Mode::Static; } -#endif assert(std::this_thread::get_id() == mapThread); setup();