Added a timeout for unlocked dir folders. Stays unlocked for aprox 3 minutes.
This commit is contained in:
parent
76ef1b813f
commit
95971d7d26
|
@ -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();
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue