From: Damyan Ivanov Date: Sat, 13 Nov 2021 07:44:24 +0000 (+0000) Subject: drop "run" method which became a wrapper around prepare_to_wait_idle X-Git-Url: https://git.ktnx.net/?a=commitdiff_plain;h=eeea137fa23911f368ae99027e4b0543da213180;p=mpd-feeder.git drop "run" method which became a wrapper around prepare_to_wait_idle --- 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=$$");