Skip to content

Commit 5749978

Browse files
committed
Bugfix for controller variable checking loop
1 parent fbc428b commit 5749978

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/controller/controller_variables.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ namespace Controller{
8989
}
9090
// Write variables from the server config to shm if any data has changed
9191
if (mutateShm) { writeToShm(); }
92-
return nextCheck;
92+
if (nextCheck < now){nextCheck = now;}
93+
return nextCheck - now;
9394
}
9495

9596
void variableDeinit() {

0 commit comments

Comments
 (0)