Skip to content

Commit

Permalink
[renderer event scripts] Improve responsiveness
Browse files Browse the repository at this point in the history
Comment out sleep 1 after mpc stop. It doesnt seem like its needed anymore.

Co-Authored-By: improve <[email protected]>
Co-Authored-By: some <[email protected]>
  • Loading branch information
3 people committed Jan 28, 2025
1 parent 1c4a420 commit 0283fd0
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion var/local/www/commandw/deezevent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ fi
if [[ $EVENT == "connected" ]]; then
$(sqlite3 $SQLDB "UPDATE cfg_system SET value='1' WHERE param='deezactive'")
/usr/bin/mpc stop > /dev/null
sleep 1
#sleep 1

# Local
if [[ $CDSP_VOLSYNC == "on" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion var/local/www/commandw/slpower.sh
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ else
debug_log "Event: Power on"
$(sqlite3 $SQLDB "UPDATE cfg_system SET value='1' WHERE param='slactive'")
/usr/bin/mpc stop > /dev/null
sleep 1
#sleep 1

# Local
if [[ $CDSP_VOLSYNC == "on" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion var/local/www/commandw/spotevent.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ fi
if [[ $PLAYER_EVENT == "session_connected" ]]; then
$(sqlite3 $SQLDB "UPDATE cfg_system SET value='1' WHERE param='spotactive'")
/usr/bin/mpc stop > /dev/null
sleep 1
#sleep 1

# Local
if [[ $CDSP_VOLSYNC == "on" ]]; then
Expand Down
2 changes: 1 addition & 1 deletion var/local/www/commandw/spspre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ fi

$(sqlite3 $SQLDB "UPDATE cfg_system SET value='1' WHERE param='aplactive'")
/usr/bin/mpc stop > /dev/null
sleep 1
#sleep 1

# Local
if [[ $CDSP_VOLSYNC == "on" ]]; then
Expand Down

0 comments on commit 0283fd0

Please sign in to comment.