diff --git a/CMakeLists.txt b/CMakeLists.txt index 3d6e0e4..f1f2a2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -3,7 +3,7 @@ project(ics3 C CXX) set(PROJECT_VER_MAJOR 1) set(PROJECT_VER_MINOR 3) -set(PROJECT_VER_PATCH 1) +set(PROJECT_VER_PATCH 2) set(PROJECT_VER "${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}.${PROJECT_VER_PATCH}") set(PROJECT_APIVER "${PROJECT_VER_MAJOR}.${PROJECT_VER_MINOR}") diff --git a/src/core.cpp b/src/core.cpp index af040ea..16e93f7 100644 --- a/src/core.cpp +++ b/src/core.cpp @@ -85,7 +85,7 @@ std::shared_ptr ics::Core::getCore(const std::string& path, speed_t b { static std::unordered_map> cache; auto objPtr = cache[path].lock(); // try get - for (const auto& data : cache) if (data.second.expired()) cache.erase(data.first); // clean cashe +// for (const auto& data : cache) if (data.second.expired()) cache.erase(data.first); // clean cashe //FIXME error code if (!objPtr) { // get failed objPtr = std::make_shared(path, baudrate); cache[path] = objPtr;