Cleanup at engine exit

git-svn-id: http://voip.null.ro/svn/yate@177 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2005-01-09 19:11:33 +00:00
parent efdf6725de
commit da7178975e
1 changed files with 5 additions and 3 deletions

View File

@ -128,12 +128,9 @@ public:
bool incoming(SIPEvent* e, SIPTransaction* t);
void invite(SIPEvent* e, SIPTransaction* t);
bool buildParty(SIPMessage* message);
inline ObjList &calls()
{ return m_calls; }
inline YateSIPEngine* engine() const
{ return m_engine; }
private:
ObjList m_calls;
int m_localport;
int m_port;
int m_netfd;
@ -361,7 +358,12 @@ YateSIPEndPoint::YateSIPEndPoint()
YateSIPEndPoint::~YateSIPEndPoint()
{
Debug(DebugAll,"YateSIPEndPoint::~YateSIPEndPoint() [%p]",this);
s_calls.clear();
// send any pending events
while (m_engine->process())
;
delete m_engine;
m_engine = 0;
}
bool YateSIPEndPoint::buildParty(SIPMessage* message)