X-Git-Url: https://git.xandkar.net/?a=blobdiff_plain;f=bin%2Fkhatus_controller;h=72136d0b9e2a4aeb939dda6cae3e013a97a54ae9;hb=7a2b16ba7175f07e0ae54e0527475c75e8cc1210;hp=c4a6cfdd18390b7b0b9e65336b66d309d085bac2;hpb=1b82be542b4db50148ddcae94713cfe8ecbeec01;p=khatus.git diff --git a/bin/khatus_controller b/bin/khatus_controller index c4a6cfd..72136d0 100755 --- a/bin/khatus_controller +++ b/bin/khatus_controller @@ -2,6 +2,15 @@ /^OK/ { debug("OK line", $0) } +/^ERROR in:MPD.*NON_ZERO_EXIT_CODE/ { + for (mpd_key in db) { + if (mpd_key ~ "^mpd_") { + delete db[mpd_key] + } + } + next +} + /^ERROR/ { debug("ERROR line", $0) shift()