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);
|
int index = models.indexOf(model);
|
||||||
Model m = models.get(index);
|
Model m = models.get(index);
|
||||||
m.setSuspended(false);
|
m.setSuspended(false);
|
||||||
if (m.isOnline()) {
|
|
||||||
startRecordingProcess(m);
|
|
||||||
}
|
|
||||||
model.setSuspended(false);
|
model.setSuspended(false);
|
||||||
config.save();
|
config.save();
|
||||||
|
startRecordingProcess(m);
|
||||||
} else {
|
} else {
|
||||||
LOG.warn("Couldn't resume model {}. Not found in list", model.getName());
|
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 {
|
} finally {
|
||||||
recorderLock.unlock();
|
recorderLock.unlock();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue