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:
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user