1
0
Fork 0

set last time

This commit is contained in:
Christopher Latza 2020-06-15 18:37:08 +02:00
parent 303a682eb1
commit 3546f779b7
1 changed files with 2 additions and 1 deletions

View File

@ -54,6 +54,7 @@ while(TRUE)
$result = file_get_contents($DiscordWebhook, false, stream_context_create($startOptions));
echo "done.\n";
$lastOnlineTime = time();
system("rtmpdump -r ".$StreamURL." -m 15 -o /dev/null");
if(($lastOnlineTime + 10) < time())