cleanup
This commit is contained in:
parent
619d61b8b4
commit
cfd06a31bd
10
start.php
10
start.php
|
@ -56,11 +56,11 @@ while(TRUE)
|
|||
|
||||
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";
|
||||
|
|
Loading…
Reference in New Issue