afm-main-plugin: fix fatal error on initialisation
authorJosé Bollo <jose.bollo@iot.bzh>
Sat, 23 Jan 2016 12:33:10 +0000 (13:33 +0100)
committerJosé Bollo <jose.bollo@iot.bzh>
Sat, 23 Jan 2016 12:33:10 +0000 (13:33 +0100)
commit6d5919ea8fe4f2794a1fe6ffff26dd0ad56faff6
tree62afcccfde628021208ebf04f601f09ee49ceee6
parentc9a33351febfbafb58f477b1bbc9bf14a4e35d05
afm-main-plugin: fix fatal error on initialisation

The code was asking to disconnect from dbus even if not connected.
The library dbus aborts the program in that case. Ouch...
That is now taken into account and don't fail more.

Change-Id: I088ef547f6a415e0adb795ac2e64233fd45dc945
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
plugins/afm-main-plugin/utils-jbus.c