[Slim-Checkins] r8862 - /trunk/server/Slim/Buttons/Common.pm
dsully at svn.slimdevices.com
dsully at svn.slimdevices.com
Tue Aug 8 10:44:32 PDT 2006
Author: dsully
Date: Tue Aug 8 10:44:31 2006
New Revision: 8862
URL: http://svn.slimdevices.com?rev=8862&view=rev
Log:
Bug: N/A
Description: More uninit
Modified:
trunk/server/Slim/Buttons/Common.pm
Modified: trunk/server/Slim/Buttons/Common.pm
URL: http://svn.slimdevices.com/trunk/server/Slim/Buttons/Common.pm?rev=8862&r1=8861&r2=8862&view=diff
==============================================================================
--- trunk/server/Slim/Buttons/Common.pm (original)
+++ trunk/server/Slim/Buttons/Common.pm Tue Aug 8 10:44:31 2006
@@ -1366,13 +1366,20 @@
# unset any previous timers
Slim::Utils::Timers::killTimers($client, \&_periodicUpdate);
- my $interval = $client->param('modeUpdateInterval');
- my $interval2 = ($client->param('screen2') eq 'periodic');
+ my $interval = $client->param('modeUpdateInterval');
+ my $interval2 = undef;
+
+ if ($client->param('screen2') && $client->param('screen2') eq 'periodic') {
+
+ $interval2 = 1;
+ }
return unless ($interval || $interval2);
my $time = Time::HiRes::time() + ($interval || 0.05);
+
Slim::Utils::Timers::setTimer($client, $time, \&_periodicUpdate, $client);
+
$client->periodicUpdateTime($time);
}
More information about the checkins
mailing list