diff --git a/scripts/zmpkg.pl.in b/scripts/zmpkg.pl.in index b0d63a121..8ab1b4337 100644 --- a/scripts/zmpkg.pl.in +++ b/scripts/zmpkg.pl.in @@ -83,7 +83,7 @@ if ( $command and ( $command !~ /^(?:start|stop|restart|status|logrot|version)$/ Error("Unknown function $function, defaulting to Mocord"); } } elsif (@state == 4) { - ($id, $capturing, $analysing, $capturing) = @state; + ($id, $capturing, $analysing, $recording) = @state; } else { Error("Unknown state in @state"); }