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