From 78c0788be67608069219a0a0244c8a395efd6fd6 Mon Sep 17 00:00:00 2001 From: pixl Date: Sun, 19 Jul 2020 23:48:24 -0400 Subject: [PATCH] Fix bad removeDevice map check --- src/logid/DeviceManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logid/DeviceManager.cpp b/src/logid/DeviceManager.cpp index e8016d4..924c499 100644 --- a/src/logid/DeviceManager.cpp +++ b/src/logid/DeviceManager.cpp @@ -102,7 +102,7 @@ void DeviceManager::removeDevice(std::string path) logPrintf(INFO, "Receiver on %s disconnected", path.c_str()); } else { auto device = _devices.find(path); - if(device != _devices.find(path)) { + if(device != _devices.end()) { _devices.erase(device); logPrintf(INFO, "Device on %s disconnected", path.c_str()); }