Cleaned up the get_play_lock and release_play_lock stuff and placed them in the right (?) places for AP2, AP1 compatibiity and Classic AP. Fixed the setting of flags and GID in Bonjour.

This commit is contained in:
Mike Brady
2025-12-09 12:10:05 +00:00
parent f2de7fadef
commit e9f60c89d2
6 changed files with 179 additions and 124 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ void on_message(__attribute__((unused)) struct mosquitto *mosq,
debug(2, "[MQTT]: Received Recognized Command: %s\n", commands[it]);
if (strcmp(commands[it], "disconnect") == 0) {
debug(2, "[MQTT]: Disconnect Command: %s\n", commands[it]);
get_play_lock(NULL, 1); // stop any current session and don't replace it
release_play_lock(NULL); // stop any current session and don't replace it
} else {
debug(2, "[MQTT]: DACP Command: %s\n", commands[it]);
send_simple_dacp_command(commands[it]);