Diff between 7ee368634885fb429f3c9102b46f92d8d23667ff and f301e07d815e654d18994a7674ac5a6ad60b3546
Changed Files
| File | Additions | Deletions | Status |
| src/device.c | +2 | -1 | modified |
Full Patch
diff --git a/src/device.c b/src/device.c
index 82b66e6..c0e317d 100644
--- a/src/device.c
+++ b/src/device.c
@@ -1100,7 +1100,8 @@ void device_request_disconnect(struct btd_device *device, DBusMessage *msg)
}
if (!device->connected) {
- g_dbus_send_reply(dbus_conn, msg, DBUS_TYPE_INVALID);
+ if (msg)
+ g_dbus_send_reply(dbus_conn, msg, DBUS_TYPE_INVALID);
return;
}