output/Thread: fix assertion failure in CLOSE handler
Convert assertion to runtime check; this assertion could fail when the output was closed due to an error before CLOSE arrived.
This commit is contained in:
parent
e76573cc1a
commit
d6d465cdf4
@ -443,9 +443,8 @@ AudioOutput::Task()
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case Command::CLOSE:
|
case Command::CLOSE:
|
||||||
assert(open);
|
if (open)
|
||||||
|
Close(false);
|
||||||
Close(false);
|
|
||||||
CommandFinished();
|
CommandFinished();
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user