[Slim-Checkins] r10042 - /branches/6.5/server/Plugins/Live365/Live365API.pm

andy at svn.slimdevices.com andy at svn.slimdevices.com
Tue Sep 26 05:59:11 PDT 2006


Author: andy
Date: Tue Sep 26 05:59:10 2006
New Revision: 10042

URL: http://svn.slimdevices.com?rev=10042&view=rev
Log:
Avoid a crash seen on SN

Modified:
    branches/6.5/server/Plugins/Live365/Live365API.pm

Modified: branches/6.5/server/Plugins/Live365/Live365API.pm
URL: http://svn.slimdevices.com/branches/6.5/server/Plugins/Live365/Live365API.pm?rev=10042&r1=10041&r2=10042&view=diff
==============================================================================
--- branches/6.5/server/Plugins/Live365/Live365API.pm (original)
+++ branches/6.5/server/Plugins/Live365/Live365API.pm Tue Sep 26 05:59:10 2006
@@ -559,7 +559,10 @@
 	my $errorSub = $http->params('errorSub');
 
 	$self->{asyncHTTP} = undef;
-	&$errorSub($client);
+	
+	if ( $errorSub && ref $errorSub eq 'CODE' ) {
+		$errorSub->($client);
+	}
 }
 
 sub clearStationDirectory {



More information about the checkins mailing list