Skip to content

Commit

Permalink
Call initHelpers on API check failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
glogiotatidis authored Nov 18, 2023
1 parent 6144db0 commit 15f3414
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Connect/DaemonManager.pm
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ sub checkAPIConnectPlayers {
if ( !$oneHelper && !$spotifyId && $helper->cache eq $cacheFolder ) {
$log->warn("Connect daemon is running, but not connected - shutting down to force restart: " . $helper->mac . " " . $helper->name);
$class->stopHelper($helper->mac);
Slim::Utils::Timers::setTimer( $class, Time::HiRes::time() + DAEMON_INIT_DELAY, \&initHelpers );

# flag this system as flaky if we have to restart and the user is relying on the server
# $prefs->set('checkDaemonConnected', 1) if $prefs->get('disableDiscovery');
Expand Down

0 comments on commit 15f3414

Please sign in to comment.