diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-10-08 00:41:14 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-10-08 00:41:14 +0200 |
commit | bfcbd6828d59c9033b0dd33fb781a1d0d8d551c1 (patch) | |
tree | 71cc4977e640b57f55ea4e8d7267de6d3ed42e26 | |
parent | f4477991e23838c49eb59f94230ce5ac3858dffa (diff) | |
download | connman-bfcbd6828d59c9033b0dd33fb781a1d0d8d551c1.tar.gz connman-bfcbd6828d59c9033b0dd33fb781a1d0d8d551c1.tar.bz2 connman-bfcbd6828d59c9033b0dd33fb781a1d0d8d551c1.zip |
Fix missing driver handling issue
-rw-r--r-- | src/element.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/element.c b/src/element.c index 5b2ecbc7..5025c6db 100644 --- a/src/element.c +++ b/src/element.c @@ -399,13 +399,10 @@ static DBusMessage *do_disable(DBusConnection *conn, DBG("conn %p", conn); - if (element->driver == NULL) - return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); - if (element->enabled == FALSE) return g_dbus_create_reply(msg, DBUS_TYPE_INVALID); - if (element->driver->disable) { + if (element->driver && element->driver->disable) { DBG("Calling disable callback"); element->driver->disable(element); } |