mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 13:07:03 +03:00
update plugin (credits @mherger)
This commit is contained in:
@@ -63,6 +63,9 @@ sub initFirmwareDownload {
|
||||
$cb->() if $cb;
|
||||
}
|
||||
}
|
||||
elsif ($cb) {
|
||||
$cb->();
|
||||
}
|
||||
},
|
||||
sub {
|
||||
my ($http, $error) = @_;
|
||||
@@ -119,10 +122,15 @@ sub prefetchFirmware {
|
||||
|
||||
$cb->($releaseInfo, _gh2lmsUrl($url), $customFwUrl) if $cb;
|
||||
}
|
||||
elsif ($cb) {
|
||||
$cb->();
|
||||
}
|
||||
},
|
||||
sub {
|
||||
my ($http, $error) = @_;
|
||||
$log->error("Failed to get releases from Github: $error");
|
||||
|
||||
$cb->() if $cb;
|
||||
},
|
||||
{
|
||||
timeout => 10,
|
||||
|
||||
Reference in New Issue
Block a user