]> git.ktnx.net Git - mpd-feeder.git/commitdiff
drop "run" method which became a wrapper around prepare_to_wait_idle
authorDamyan Ivanov <dmn@debian.org>
Sat, 13 Nov 2021 07:44:24 +0000 (07:44 +0000)
committerDamyan Ivanov <dmn@debian.org>
Sat, 13 Nov 2021 07:44:24 +0000 (07:44 +0000)
lib/App/MPD/Feeder.pm

index 777c95bf10d79b2b561ad57acd1437e4d605aa71..3808c91f8195b36fc8983999e800d3f655999ce1 100644 (file)
@@ -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=$$");