eldbus hackaround for proxy deletion during pending callback

this is merely a way to avoid crashing immediately when the referenced bug is triggered. it does not fix the problem.

ref T1908
This commit is contained in:
Mike Blumenkrantz 2014-12-08 14:55:30 -05:00
parent b000950288
commit 6a08788d59
2 changed files with 3 additions and 0 deletions

View File

@ -219,6 +219,8 @@ static void
eldbus_pending_dispatch(Eldbus_Pending *pending, Eldbus_Message *msg)
{
DBG("pending=%p msg=%p", pending, msg);
if (pending->called) return;
pending->called = 1;
if (pending->cb)
pending->cb((void *)pending->cb_data, msg, pending);

View File

@ -114,6 +114,7 @@ struct _Eldbus_Pending
Eina_Inlist *data;
Eina_Inlist *cbs_free;
Eldbus_Message *msg_sent;
Eina_Bool called : 1;
};
struct _Eldbus_Message_Iter