diff options
Diffstat (limited to 'lib/LuaTask.cc')
-rw-r--r-- | lib/LuaTask.cc | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/LuaTask.cc b/lib/LuaTask.cc index a5dd63e..45d19c1 100644 --- a/lib/LuaTask.cc +++ b/lib/LuaTask.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: LuaTask.cc,v 1.22 2008-01-21 09:45:32 pixel Exp $ */ +/* $Id: LuaTask.cc,v 1.23 2008-01-21 09:49:46 pixel Exp $ */ #include <LuaTask.h> #include <LuaHandle.h> @@ -312,23 +312,16 @@ void LuaTaskMan::pushstatics(Lua * L) throw (GeneralException) { class DelayedTask : public Task { public: DelayedTask(Lua * __L, const String & _cmd, int _delay) : L(__L), cmd(_cmd), delay(_delay) { - printm(M_INFO, "Creating object delayedtask, delay = %i seconds, cmd = " + cmd + ".\n", _delay); SetBurst(); } - ~DelayedTask() { - printm(M_INFO, "DelayedTask: destroying object; current = %i\n", current); - } virtual int Do() throw (GeneralException) { timeval delay_tv = { delay, 0 }; switch(current) { case 0: - printm(M_INFO, "DelayTask: initializing.\n"); WaitFor(delay_tv); current = 1; return TASK_ON_HOLD; case 1: - current = 2; - printm(M_INFO, "DelayTask: expired, lauching LuaTask with cmd = " + cmd + "\n"); RemoveTimeout(); new LuaTask(L, cmd); return TASK_DONE; @@ -355,7 +348,6 @@ int sLua_TaskMan::TaskMan_proceed_statics(Lua * L, int n, int caller) { cmd = L->tostring(1); if (n == 2) delay = L->tonumber(2); - printm(M_INFO, "Creating delayed task of %i seconds.\n", delay); new DelayedTask(L, cmd, delay); break; } |