Sfoglia il codice sorgente

Close the underlying connection also on MalformedServerResponse exceptions.

Daniele Alessandri 15 anni fa
parent
commit
3a44f766c2
1 ha cambiato i file con 1 aggiunte e 3 eliminazioni
  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
 
 /* ------------------------------------------------------------------------- */