really quick patch on connman asking for logins... agent->msg is the

same as msg in the cb. this stops an instant segv but doesnt fully fix
it. it's at least marked/commented to be looked at.



SVN revision: 77556
This commit is contained in:
Carsten Haitzler 2012-10-07 09:59:07 +00:00
parent 13f9c864ff
commit c17116d357
1 changed files with 3 additions and 0 deletions

View File

@ -413,6 +413,9 @@ _agent_request_input(E_DBus_Object *obj, DBusMessage *msg)
agent = e_dbus_object_data_get(obj);
/* Discard previous requests */
// if msg is the current agent msg? eek.
if (agent->msg == msg) return NULL;
if (agent->msg)
dbus_message_unref(agent->msg);
agent->msg = dbus_message_ref(msg);