os/ble_dbus: Fix return check

This commit is contained in:
Jakob Bornecrantz 2020-04-03 20:06:44 +01:00 committed by Jakob Bornecrantz
parent 99af2b76d3
commit ded6a8a4b9

View file

@ -783,7 +783,7 @@ os_ble_notify_open(const char *dev_uuid,
bledev->fd = -1;
int ret = init_ble_notify(dev_uuid, char_uuid, bledev);
if (ret <= 0) {
if (ret != 0) {
os_ble_notify_destroy(&bledev->base);
return -1;
}