evdev: ungrab if it is already initialized

This commit is contained in:
chrys 2017-02-21 22:53:00 +01:00
parent 4e36044d91
commit ef006fb423

View File

@ -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: