fix bug with callback while connectionFailed
authorRico Schulte <ricoschulte@users.schwerkraft.elitedvb.net>
Fri, 15 Jun 2007 16:20:24 +0000 (16:20 +0000)
committerRico Schulte <ricoschulte@users.schwerkraft.elitedvb.net>
Fri, 15 Jun 2007 16:20:24 +0000 (16:20 +0000)
lastfm/src/httpclient.py

index 6b75f6c..cd759e7 100755 (executable)
@@ -174,8 +174,7 @@ class Enigma2HTTPClientFactory(ClientFactory):
         ClientFactory.clientConnectionLost(self, connector, reason)
         
     def clientConnectionFailed(self, connector, reason):
-        if self.errorback is not None:
-            self.request.RequestError(reason.getErrorMessage())
+        self.request.RequestError(reason.getErrorMessage())
         ClientFactory.clientConnectionFailed(self, connector, reason)
 
 def urlencode(dict):