Refactor RollingCodesService to remove configuration file handling and update initialization logic
This commit is contained in:
@@ -21,10 +21,10 @@ void initHeartbeat() {
|
||||
DateTime now = DateTime.now().toUtc();
|
||||
|
||||
try {
|
||||
// Wait until rolling codes service is initialized and registered
|
||||
// Wait until rolling codes service is initialized and has operational seed
|
||||
if (!RollingCodesService.isRegistered) {
|
||||
print("Server not registered yet, skipping heartbeat");
|
||||
await Future.delayed(Duration(seconds: 30));
|
||||
await Future.delayed(Duration(seconds: 10)); // Check more frequently during startup
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user