From 1fcc45aeb7e19749afbe0470c50a9bcc0e45774d Mon Sep 17 00:00:00 2001 From: fduncanh Date: Sun, 14 Nov 2021 01:10:46 -0500 Subject: [PATCH] fix logic in test for TEARDOWN type --- lib/raop.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lib/raop.c b/lib/raop.c index e8a8a25e..b5ac23e9 100755 --- a/lib/raop.c +++ b/lib/raop.c @@ -228,8 +228,11 @@ conn_request(void *ptr, http_request_t *request, http_response_t **response) { plist_t req_stream_node = plist_array_get_item(req_streams_node,0); plist_t req_stream_type_node = plist_dict_get_item(req_stream_node, "type"); plist_get_uint_val(req_stream_type_node, &val); - teardown_96 = (val == 96); - teardown_110 = (val == 110); + if (val == 96) { + teardown_96 = true; + } else if (val == 110) { + teardown_110 = true; + } } } if (conn->raop->callbacks.teardown_request) {