Skip to content

Commit

Permalink
[mpdmon] Improve connection message
Browse files Browse the repository at this point in the history
  • Loading branch information
moodeaudio committed Oct 19, 2024
1 parent 09620e5 commit 43340e1
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions www/daemon/mpdmon.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,7 @@
$msg = 'mpdmon: MPD restarted';
sysCmd("systemctl restart mpd");
$sock = openMpdSock('localhost', 6600); // 6 x .5sec retries
workerLog($sock === false ?
'mpdmon: MPD port 6600: connection refused' :
'mpdmon: MPD port 6600: accepting connections');
$msg = $sock == false ? ', connection refused' : ', accepting connections';
if ($sock !== false && $resumePlay == 'Yes') {
$msg .= ', play resumed';
sysCmd('mpc play');
Expand Down

0 comments on commit 43340e1

Please sign in to comment.