From 4d938ab86005be9673a6d5ee10da5923cbae4ba1 Mon Sep 17 00:00:00 2001 From: Damyan Ivanov Date: Thu, 11 Nov 2021 20:11:05 +0000 Subject: [PATCH] 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 --- bin/mpd-feeder | 2 ++ 1 file changed, 2 insertions(+) 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 } ); -- 2.39.5