From 14a29273a21351c9ef6db51ed0124975b34fb991 Mon Sep 17 00:00:00 2001 From: Rob Vella Date: Sun, 2 Aug 2020 00:54:58 -0700 Subject: [PATCH] Exit upon failure. Let systemd/supervisor handle it --- streamServer.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/streamServer.php b/streamServer.php index d4dd9b4..c883885 100644 --- a/streamServer.php +++ b/streamServer.php @@ -101,7 +101,8 @@ class Stream if (!$this->stream) { $this->appendToStreamOutput($this->timeFormatted() . " rpt0000 KEY [via 0000] [WINSystem Allmon Connection Failed]"); sleep(120); - $this->streamLoop(); + // Systemd / Supervisor will restart us anyway + exit; } while (!feof($this->stream)) { @@ -117,6 +118,9 @@ class Stream } } } + + // Redundant + exit; } /**