mirror of
https://github.com/claunia/cuetools.net.git
synced 2025-12-16 18:14:25 +00:00
Avoid second exception when closing external decoder that failed to start
This commit is contained in:
@@ -85,7 +85,10 @@ namespace CUETools.Codecs
|
|||||||
ex = _ex;
|
ex = _ex;
|
||||||
}
|
}
|
||||||
if (!started)
|
if (!started)
|
||||||
|
{
|
||||||
|
_decoderProcess = null;
|
||||||
throw new Exception(_decoder + ": " + (ex == null ? "please check the path" : ex.Message));
|
throw new Exception(_decoder + ": " + (ex == null ? "please check the path" : ex.Message));
|
||||||
|
}
|
||||||
rdr = new WAVReader(_path, _decoderProcess.StandardOutput.BaseStream);
|
rdr = new WAVReader(_path, _decoderProcess.StandardOutput.BaseStream);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user