mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
os/ble_dbus: Fix return check
This commit is contained in:
parent
99af2b76d3
commit
ded6a8a4b9
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue