Update sse.php
Keep unlock state from going to negative indefinably without intervention.
This commit is contained in:
parent
95971d7d26
commit
9a72861f58
|
@ -10,7 +10,7 @@
|
||||||
$_SESSION["refreshState"] = $state;
|
$_SESSION["refreshState"] = $state;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($_SESSION["unlockTime"])) {
|
if (isset($_SESSION["unlockTime"]) && $_SESSION["unlockTime"] >= 0) {
|
||||||
$_SESSION["unlockTime"] -= 1;
|
$_SESSION["unlockTime"] -= 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue