From ef006fb423ea535d4d0405c6221a97667c7722b2 Mon Sep 17 00:00:00 2001 From: chrys Date: Tue, 21 Feb 2017 22:53:00 +0100 Subject: [PATCH] evdev: ungrab if it is already initialized --- src/fenrir/inputDriver/evdevDriver.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/fenrir/inputDriver/evdevDriver.py b/src/fenrir/inputDriver/evdevDriver.py index ca23c164..c185b6de 100644 --- a/src/fenrir/inputDriver/evdevDriver.py +++ b/src/fenrir/inputDriver/evdevDriver.py @@ -96,6 +96,8 @@ class driver(): def getInputDevices(self): if not self._initialized: return + if self.iDevices != {}: + self.releaseDevices() deviceList = evdev.list_devices() readableDevices = [] for dev in deviceList: