From 5d9d55a2456151654259591f8e98f531d06ed56d Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sun, 28 Aug 2022 10:20:26 +0200 Subject: [PATCH] fix device closing --- src/config/ConfigManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index a502423b..0fba7877 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -938,7 +938,7 @@ void CConfigManager::parseLine(std::string& line) { const auto LASTSEP = currentCategory.find_last_of(':'); - if (LASTSEP == std::string::npos) + if (LASTSEP == std::string::npos || currentCategory.contains("device:")) currentCategory = ""; else currentCategory = currentCategory.substr(0, LASTSEP);