def service_disconnect_handler(service, ok, err): if DIALUP_NET_SVCLASS_ID != uuid128_to_uuid16(service.uuid): return False conn = NMDUNConnection(service, ok, err) conn.deactivate() return True
def service_disconnect_handler(service, ok, err): if DIALUP_NET_SVCLASS_ID != service.short_uuid: return False conn = NMDUNConnection(service, ok, err) conn.deactivate() return True
def service_disconnect_handler( self, service: Service, ok: Callable[[], None], err: Callable[[Union[NMConnectionError, GLib.Error]], None]) -> bool: if DIALUP_NET_SVCLASS_ID != service.short_uuid: return False conn = NMDUNConnection(service, ok, err) conn.deactivate() return True