From: Damyan Ivanov Date: Thu, 11 Nov 2021 20:11:05 +0000 (+0000) Subject: connect to the DB early when in feeder mode X-Git-Url: https://git.ktnx.net/?p=mpd-feeder.git;a=commitdiff_plain;h=4d938ab86005be9673a6d5ee10da5923cbae4ba1 connect to the DB early when in feeder mode this way any problems in the connection will show at startup instead of later when a new song needs to be queued --- diff --git a/bin/mpd-feeder b/bin/mpd-feeder index a170816..8644dde 100755 --- a/bin/mpd-feeder +++ b/bin/mpd-feeder @@ -571,6 +571,8 @@ if (@ARGV) { } } +$feeder->connect_db; + for ( ;; ) { $feeder->queue_songs( undef, sub { $feeder->run } );