Fixed bug: remove relay from relays list when uninstalled to avoid keeping an invalid pointer.

git-svn-id: http://yate.null.ro/svn/yate/trunk@5321 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
marian 2012-11-13 11:30:30 +00:00
parent 7a3445a4ee
commit ce58dea406
1 changed files with 2 additions and 2 deletions

View File

@ -1056,8 +1056,8 @@ bool Module::uninstallRelay(int id, bool delRelay)
continue;
Engine::uninstall(r);
m_relays &= ~id;
if (delRelay)
TelEngine::destruct(r);
l->remove(delRelay);
break;
}
return false;
}