From 95971d7d26074648d995acffeab9fc9c052a8598 Mon Sep 17 00:00:00 2001 From: Maxim Stewart Date: Sat, 28 Jul 2018 23:40:12 -0500 Subject: [PATCH] Added a timeout for unlocked dir folders. Stays unlocked for aprox 3 minutes. --- resources/php/sse.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/resources/php/sse.php b/resources/php/sse.php index 81b92aa..8a42200 100644 --- a/resources/php/sse.php +++ b/resources/php/sse.php @@ -11,7 +11,7 @@ } if (isset($_SESSION["unlockTime"])) { - $_SESSION["unlockTime"] += 1; + $_SESSION["unlockTime"] -= 1; } header('Content-Type: text/event-stream'); @@ -19,7 +19,5 @@ echo "data:" . $state . "\n\n"; $_SESSION["refreshState"] = "none"; - $UNLOCKTIME = 0; - flush(); ?>