Skip to content

Commit

Permalink
fix logic in test for TEARDOWN type
Browse files Browse the repository at this point in the history
  • Loading branch information
fduncanh committed Nov 14, 2021
1 parent b9def41 commit 1fcc45a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/raop.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 1fcc45a

Please sign in to comment.