Delete SNMP thread in case binding on the SNMP socket fails.
git-svn-id: http://yate.null.ro/svn/yate/trunk@3816 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
2d2fd49921
commit
0aa3a6849a
|
@ -1556,8 +1556,10 @@ void SnmpAgent::initialize()
|
||||||
setup();
|
setup();
|
||||||
installRelay(Halt);
|
installRelay(Halt);
|
||||||
m_msgQueue = new SnmpMsgQueue(this,threadPrio,snmpPort);
|
m_msgQueue = new SnmpMsgQueue(this,threadPrio,snmpPort);
|
||||||
if (!m_msgQueue->init())
|
if (!m_msgQueue->init()) {
|
||||||
|
delete m_msgQueue;
|
||||||
m_msgQueue = 0;
|
m_msgQueue = 0;
|
||||||
|
}
|
||||||
if (m_trapHandler)
|
if (m_trapHandler)
|
||||||
return;
|
return;
|
||||||
m_trapHandler = new TrapHandler();
|
m_trapHandler = new TrapHandler();
|
||||||
|
|
Loading…
Reference in New Issue