diff --git a/start.php b/start.php index b819557..53a7552 100644 --- a/start.php +++ b/start.php @@ -53,7 +53,8 @@ while(TRUE) echo "Sending start info to discord..."; $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())