forked from enlightenment/enlightenment
dont report the connman error more than once here
SVN revision: 69046
This commit is contained in:
parent
ef93a97573
commit
e6958153cb
|
@ -809,11 +809,19 @@ _connman_request_scan_cb(void *data __UNUSED__,
|
|||
DBusMessage *msg __UNUSED__,
|
||||
DBusError *error)
|
||||
{
|
||||
static int perr = 0;
|
||||
|
||||
if (error && dbus_error_is_set(error))
|
||||
{
|
||||
ERR("%s method failed with message \'%s\'", error->name, error->message);
|
||||
if (perr != 1)
|
||||
{
|
||||
ERR("%s method failed with message \'%s\'", error->name, error->message);
|
||||
}
|
||||
perr = 1;
|
||||
dbus_error_free(error);
|
||||
}
|
||||
else
|
||||
perr = 0;
|
||||
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue