diff options
Diffstat (limited to 'mpdlrc')
-rwxr-xr-x | mpdlrc | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -44,11 +44,6 @@ binmode *STDOUT, ':encoding(utf8)'; MPD: while (1) { - # Something important happened; kill any running lyric processes - if ($pid) { - kill 'INT', $pid; - } - # Get the current status my $status = $mpd->update_status(); @@ -91,6 +86,11 @@ MPD: while (1) { # Wait for something else to happen to the player, whether or not there's a # forked process going $mpd->idle('player'); + + # Something important happened; kill any running lyric processes + if ($pid) { + kill 'INT', $pid; + } } # Subroutine to read lyrics from the given filename and return a queue object |