Remove online check in resumeRecording
The online check will be done in the preconditions check anyway
This commit is contained in:
parent
0b384cf85e
commit
eaf5fd2ed7
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue