From 143a48f5e33dee49a1348ba4056d3b64ffcfd750 Mon Sep 17 00:00:00 2001 From: Siraaj Khandkar Date: Mon, 4 Feb 2019 20:16:56 -0500 Subject: [PATCH] Fix close mpd connection --- x1/bin/khatus_show | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/x1/bin/khatus_show b/x1/bin/khatus_show index 5170492..07c5f07 100755 --- a/x1/bin/khatus_show +++ b/x1/bin/khatus_show @@ -441,7 +441,7 @@ weather=$( #) mpd_currentsong=$( - echo 'currentsong' \ + echo 'currentsong\nclose' \ | nc 127.0.0.1 6600 \ | awk -v max_chars=10 ' /^OK/ { @@ -477,7 +477,7 @@ mpd_currentsong=$( ) mpd_state=$( - echo 'status' \ + echo 'status\nclose' \ | nc 127.0.0.1 6600 \ | awk \ -v current_song="$mpd_currentsong" \ -- 2.20.1