Don't throw exception, if no sync happened yet

This commit is contained in:
0xboobface 2018-12-05 20:59:03 +01:00
parent 9f19b2c1fa
commit 00869315fb
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ public class RemoteRecorder implements Recorder {
@Override
public List<Model> getModelsRecording() {
if(lastSync.isBefore(Instant.now().minusSeconds(60))) {
if(!lastSync.equals(Instant.EPOCH) && lastSync.isBefore(Instant.now().minusSeconds(60))) {
throw new RuntimeException("Last sync was over a minute ago");
}
return models;