bpa wrote:
> Done a little more diggiing. Still not clear why Restart appears ahead
> but found an interesting timeout.
>
> The file Slim::Plugin::Extensions::Settings is used to monitor
> downloads.
> It seems from this module the Restart is initiated.
> Aside from the normal "saveAs" timeout which checks for inactivity, in
> this Settings module there is a constant MAX_DOWNLOAD_WAIT which is used
> to terminate plugin downloads. Currently it is set to 20 secs.
> >
Code:
--------------------
> >
> .
> .
> my $finalize;
> my $timeout = MAX_DOWNLOAD_WAIT;
>
> $finalize = sub {
> Slim::Utils::Timers::killTimers(undef, $finalize);
>
> # if a plugin is still being downloaded, wait a bit
longer, or the user might restart the server before we're done
> if ( $timeout-- > 0 &&
Slim::Utils::PluginDownloader->downloading ) {
> Slim::Utils::Timers::setTimer(undef, time() +
1, $finalize);
>
> main::DEBUGLOG && $log->is_debug &&
$log->debug("PluginDownloader is still busy - waiting a little longer...");
> return;
> }
>
> $callback->($client, $params, $pageInfo, @$args);
> };
>
> $finalize->();
> .
> .
>
>
--------------------
> >
I had to wait much longer for the download to finish. Speaking of having
to wait much longer, I was just logging network.asynchttp when the dear
family stopped watching TV and decided to catch up on podcasts instead.
I'll try again later.
QLMS [email protected] x64 (digimaster) with perl 5.30.1 / QNAP 469L QTS 4.3.4
------------------------------------------------------------------------
dolodobendan's Profile: http://forums.slimdevices.com/member.php?userid=67663
View this thread: http://forums.slimdevices.com/showthread.php?t=112241
_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter