Sent the unexpectedRestart trap only if the child was terminated by a signal.

git-svn-id: http://yate.null.ro/svn/yate/trunk@5566 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2013-07-08 08:10:40 +00:00
parent 6053283c1d
commit 74aae464d4
1 changed files with 1 additions and 1 deletions

View File

@ -1658,7 +1658,7 @@ bool EngineStartHandler::received(Message& msg)
__plugin.sendTrap(notif,String(s_yateRun));
}
int lastsignal = Engine::runParams().getIntValue(YSTRING("lastsignal"),0);
if (lastsignal >= 0) {
if (lastsignal > 0) {
String notif = lookup(EngineInfo::ENGINE_UNEX_RESTART,s_engineQuery,"");
if (!notif.null())
__plugin.sendTrap(notif,String(lastsignal));