Don't throw exception, if no sync happened yet
This commit is contained in:
parent
9f19b2c1fa
commit
00869315fb
|
@ -132,7 +132,7 @@ public class RemoteRecorder implements Recorder {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Model> getModelsRecording() {
|
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");
|
throw new RuntimeException("Last sync was over a minute ago");
|
||||||
}
|
}
|
||||||
return models;
|
return models;
|
||||||
|
|
Loading…
Reference in New Issue