From 307665891d007fdc6894cb5781bc3bc42ea28166 Mon Sep 17 00:00:00 2001 From: rdb Date: Thu, 17 Dec 2015 01:45:23 +0100 Subject: [PATCH] Fix compile error on Linux in hotplug code --- panda/src/device/inputDeviceManager.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/panda/src/device/inputDeviceManager.cxx b/panda/src/device/inputDeviceManager.cxx index 44b038adda..0e5907fa3f 100644 --- a/panda/src/device/inputDeviceManager.cxx +++ b/panda/src/device/inputDeviceManager.cxx @@ -266,10 +266,8 @@ update() { PT(InputDevice) device = it->second; device->set_connected(false); - InputDevices::iterator it2; _devices_by_path.erase(it); - it2 = std::find(_connected_devices.begin(), _connected_devices.end(), device); - _connected_devices.erase(it2); + _connected_devices.remove_device(device); if (device_cat.is_info()) { device_cat.info()