SignallingEvent::sendEvent cleans up itself if it has no call attached.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2320 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
5be2897476
commit
77d8c38fc2
|
@ -339,6 +339,14 @@ SignallingEvent::~SignallingEvent()
|
|||
}
|
||||
}
|
||||
|
||||
bool SignallingEvent::sendEvent()
|
||||
{
|
||||
if (m_call)
|
||||
return m_call->sendEvent(this);
|
||||
delete this;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* SignallingCircuitEvent
|
||||
|
|
|
@ -1220,8 +1220,7 @@ public:
|
|||
* Send this event through the call that generated it
|
||||
* @return True if there was a call and the operation succedded
|
||||
*/
|
||||
inline bool sendEvent()
|
||||
{ return m_call && m_call->sendEvent(this); }
|
||||
bool sendEvent();
|
||||
|
||||
private:
|
||||
Type m_type;
|
||||
|
|
Loading…
Reference in New Issue