From dbd233999e1a9807a2712f284a22dfb3aafa6922 Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 15 Dec 2002 14:41:41 +0000 Subject: [PATCH] Made pending task separate entity rather than (bogus) reference to original. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@202 e3e1d417-86f3-4887-817a-d78f3d33393f --- scripts/zmx10.pl.z | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/zmx10.pl.z b/scripts/zmx10.pl.z index 6a692c188..650a44691 100755 --- a/scripts/zmx10.pl.z +++ b/scripts/zmx10.pl.z @@ -422,15 +422,15 @@ sub addPendingTask } } + my $pending_task = { monitor=>$task->{monitor}, function=>$task->{function} }; my $end_time = time() + $task->{limit}; my $pending_list = $pending_tasks{$end_time}; if ( !$pending_list ) { $pending_list = $pending_tasks{$end_time} = []; } - $task->{function} =~ s/start/stop/; - delete( $task->{limit} ); - push( @$pending_list, $task ); + $pending_task->{function} =~ s/start/stop/; + push( @$pending_list, $pending_task ); } sub processTask