Fix: NPE when switching stream resolution of suspended model
This commit is contained in:
parent
40f0411bf3
commit
3bcbf100fe
|
@ -611,7 +611,10 @@ public class LocalRecorder implements Recorder {
|
||||||
@Override
|
@Override
|
||||||
public void switchStreamSource(Model model) throws IOException, InvalidKeyException, NoSuchAlgorithmException, IllegalStateException {
|
public void switchStreamSource(Model model) throws IOException, InvalidKeyException, NoSuchAlgorithmException, IllegalStateException {
|
||||||
LOG.debug("Switching stream source to index {} for model {}", model.getStreamUrlIndex(), model.getName());
|
LOG.debug("Switching stream source to index {} for model {}", model.getStreamUrlIndex(), model.getName());
|
||||||
|
Download download = recordingProcesses.get(model);
|
||||||
|
if(download != null) {
|
||||||
stopRecordingProcess(model);
|
stopRecordingProcess(model);
|
||||||
|
}
|
||||||
tryRestartRecording(model);
|
tryRestartRecording(model);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue