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:
Isaac Connor committed 2018-05-08 16:08:24 -04:00
1 parent e6d11bf147
commit a86b81d12e
1 file changed
+1 -1
+1 -1
View File
@@ -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;