forked from enlightenment/efl
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:
parent
b000950288
commit
6a08788d59
|
@ -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);
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue