Update sse.php

Keep unlock state from going to negative indefinably without intervention.
This commit is contained in:
Maxim 2018-07-28 23:57:56 -05:00 committed by GitHub
parent 95971d7d26
commit 9a72861f58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
$_SESSION["refreshState"] = $state;
}
if (isset($_SESSION["unlockTime"])) {
if (isset($_SESSION["unlockTime"]) && $_SESSION["unlockTime"] >= 0) {
$_SESSION["unlockTime"] -= 1;
}