From eeea137fa23911f368ae99027e4b0543da213180 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Sat, 13 Nov 2021 07:44:24 +0000 Subject: [PATCH] drop "run" method which became a wrapper around prepare_to_wait_idle --- lib/App/MPD/Feeder.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/App/MPD/Feeder.pm b/lib/App/MPD/Feeder.pm index 777c95b..3808c91 100644 --- a/lib/App/MPD/Feeder.pm +++ b/lib/App/MPD/Feeder.pm @@ -247,11 +247,6 @@ use constant DEFAULT_CONFIG_FILE => '/etc/mpd-feeder/mpd-feeder.conf'; ); } - method run { - - $self->prepare_to_wait_idle; - } - method stop { undef $mpd; @@ -259,10 +254,11 @@ use constant DEFAULT_CONFIG_FILE => '/etc/mpd-feeder/mpd-feeder.conf'; } method run_loop { + $self->connect_mpd; $self->connect_db; for ( ;; ) { - $self->queue_songs( undef, sub { $self->run } ); + $self->queue_songs( undef, sub { $self->prepare_to_wait_idle } ); $log->debug("Entering event loop. PID=$$"); -- 2.39.5