mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-17 20:21:44 -04:00
Only set term_sent_at if we don't already have one, we may send the stop signal many times
This commit is contained in:
1 parent
e6d11bf147
commit
a86b81d12e
1 file changed
+1
-1
+1
-1
@@ -537,7 +537,7 @@ sub send_stop {
|
||||
."\n"
|
||||
);
|
||||
$process->{keepalive} = !$final;
|
||||
$process->{term_sent_at} = time;
|
||||
$process->{term_sent_at} = time if ! $process->{term_sent_at};
|
||||
$process->{pending} = 0;
|
||||
$terminating_processes{$command} = $process;
|
||||
|
||||
|
||||
Reference in new issue
Block a user