Remove online check in resumeRecording

The online check will be done in the preconditions check anyway
This commit is contained in:
0xb00bface 2020-10-04 19:46:02 +02:00
parent 0b384cf85e
commit eaf5fd2ed7
1 changed files with 1 additions and 8 deletions

View File

@ -495,19 +495,12 @@ public class NextGenLocalRecorder implements Recorder {
int index = models.indexOf(model);
Model m = models.get(index);
m.setSuspended(false);
if (m.isOnline()) {
startRecordingProcess(m);
}
model.setSuspended(false);
config.save();
startRecordingProcess(m);
} else {
LOG.warn("Couldn't resume model {}. Not found in list", model.getName());
}
} catch (ExecutionException e) {
LOG.error("Couldn't check, if model {} is online", model.getName());
} catch (InterruptedException e) {
Thread.currentThread().interrupt();
LOG.error("Couldn't check, if model {} is online", model.getName());
} finally {
recorderLock.unlock();
}