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,8 +443,7 @@ AudioOutput::Task()
|
||||
break;
|
||||
|
||||
case Command::CLOSE:
|
||||
assert(open);
|
||||
|
||||
if (open)
|
||||
Close(false);
|
||||
CommandFinished();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user