From cfd06a31bdca01d5ef4cc2c4dd88e3a424db3598 Mon Sep 17 00:00:00 2001 From: Christopher Latza Date: Mon, 15 Jun 2020 18:35:45 +0200 Subject: [PATCH] cleanup --- start.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/start.php b/start.php index 6084813..a1bac04 100644 --- a/start.php +++ b/start.php @@ -55,12 +55,12 @@ while(TRUE) echo "done.\n"; system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null"); - - if(($lastOnlineTime + 60) < time()) - { - echo "Sending end info to discord..."; - $result = file_get_contents($DiscordWebhook, false, stream_context_create($endOptions)); - echo "done.\n"; + + if(($lastOnlineTime + 60) < time()) + { + echo "Sending end info to discord..."; + $result = file_get_contents($DiscordWebhook, false, stream_context_create($endOptions)); + echo "done.\n"; } }else{ echo "ERROR: Image not generated!\n";