[asterisk-commits] mnicholson: testsuite/asterisk/trunk r781 - /asterisk/trunk/asttest/lib/lua/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Thu Aug 26 15:30:34 CDT 2010
Author: mnicholson
Date: Thu Aug 26 15:30:31 2010
New Revision: 781
URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=781
Log:
Fix safety checks in asterisk process control functions
Modified:
asterisk/trunk/asttest/lib/lua/astlib.lua
Modified: asterisk/trunk/asttest/lib/lua/astlib.lua
URL: http://svnview.digium.com/svn/testsuite/asterisk/trunk/asttest/lib/lua/astlib.lua?view=diff&rev=781&r1=780&r2=781
==============================================================================
--- asterisk/trunk/asttest/lib/lua/astlib.lua (original)
+++ asterisk/trunk/asttest/lib/lua/astlib.lua Thu Aug 26 15:30:31 2010
@@ -169,22 +169,22 @@
end
function asterisk:wait(timeout)
- if not proc then return nil, "error" end
+ if not self.proc then return nil, "error" end
return self.proc:wait(timeout)
end
function asterisk:term(timeout)
- if not proc then return nil, "error" end
+ if not self.proc then return nil, "error" end
return self.proc:term(timeout)
end
function asterisk:kill()
- if not proc then return nil, "error" end
+ if not self.proc then return nil, "error" end
return self.proc:kill()
end
function asterisk:term_or_kill()
- if not proc then return nil, "error" end
+ if not self.proc then return nil, "error" end
return self.proc:term_or_kill()
end
More information about the asterisk-commits
mailing list