]> git.etc.gen.nz Git - picture-display.git/commitdiff
Switch delay_add to delay.
authorAndrew Ruthven <puck@catalyst.net.nz>
Sun, 21 Sep 2008 21:06:30 +0000 (09:06 +1200)
committerAndrew Ruthven <puck@dirk.wgtn.cat-it.co.nz>
Sun, 21 Sep 2008 21:06:30 +0000 (09:06 +1200)
lib/Display/Plugins/MPD.pm

index 46d5b51668eae8cb08fc04a40938b56461582f12..be47da18e15ace782b2ccc45e25ebbe6616e8aaf 100644 (file)
@@ -52,7 +52,7 @@ warn "Got a response from MPD\n";
     $self->{'KERNEL'}->delay( hide_display, 30 );
   }
 
-  $self->{'KERNEL'}->delay_add( mpd, 5, current );
+  $self->{'KERNEL'}->delay( mpd, 5, current );
 }
 
 sub hide_display {
@@ -73,7 +73,7 @@ sub error {
 
   warn "MPD: Error $errstr\n";
 
-  $kernel->delay_add( mpd, 5, current );
+  $kernel->delay( mpd, 5, current );
 }
 
 sub init {