Commit d6d465cd authored by Max Kellermann's avatar Max Kellermann

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.
parent e76573cc
......@@ -443,9 +443,8 @@ AudioOutput::Task()
break;
case Command::CLOSE:
assert(open);
Close(false);
if (open)
Close(false);
CommandFinished();
break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment