ble: match the disconnected signal with 'connect'

No need to pass self as argument, it's the first argument to the signal
handler anyway
pull/1/head
Peter Hutterer 2018-01-15 12:07:48 +10:00
parent 20b78b89b7
commit 35e75b4aa7
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class BlueZDevice(GObject.Object):
"connected": "connected":
(GObject.SIGNAL_RUN_FIRST, None, ()), (GObject.SIGNAL_RUN_FIRST, None, ()),
"disconnected": "disconnected":
(GObject.SIGNAL_RUN_FIRST, None, (GObject.TYPE_PYOBJECT,)), (GObject.SIGNAL_RUN_FIRST, None, ()),
} }
def __init__(self, om, obj): def __init__(self, om, obj):
@ -184,7 +184,7 @@ class BlueZDevice(GObject.Object):
self.emit('connected') self.emit('connected')
else: else:
logger.info('Disconnected') logger.info('Disconnected')
self.emit('disconnected', self) self.emit('disconnected')
def connect_gatt_value(self, uuid, callback): def connect_gatt_value(self, uuid, callback):
""" """