Fix bad removeDevice map check

master
pixl 4 years ago
parent 6d7d91cc20
commit 78c0788be6
No known key found for this signature in database
GPG Key ID: 1866C148CD593B6E
  1. 2
      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());
}

Loading…
Cancel
Save