Browse Source

Close the underlying connection also on MalformedServerResponse exceptions.

Daniele Alessandri 15 years ago
parent
commit
3a44f766c2
1 changed files with 1 additions and 3 deletions
  1. 1 3
      lib/Predis.php

+ 1 - 3
lib/Predis.php

@@ -17,9 +17,7 @@ class CommunicationException extends PredisException {              // Communica
     public function shouldResetConnection() {  return true; }
 }
 
-class MalformedServerResponse extends CommunicationException {      // Unexpected responses
-    public function shouldResetConnection() {  return false;  }
-}
+class MalformedServerResponse extends CommunicationException { }    // Unexpected responses
 
 /* ------------------------------------------------------------------------- */