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->();
  .
  .
  
  
--------------------


------------------------------------------------------------------------
bpa's Profile: http://forums.slimdevices.com/member.php?userid=1806
View this thread: http://forums.slimdevices.com/showthread.php?t=112241

_______________________________________________
Squeezecenter mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/squeezecenter

Reply via email to