Эх сурвалжийг харах

Fast fail on exceptions different than Predis\ServerException or Predis\CommunicationException.

Daniele Alessandri 15 жил өмнө
parent
commit
5427bdcf22
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -730,12 +730,12 @@ class CommandPipeline {
             if ($block !== null) {
                 $block($this);
             }
+            $this->flushPipeline();
         }
         catch (\Exception $exception) {
             $pipelineBlockException = $exception;
         }
 
-        $this->flushPipeline();
         $this->setRunning(false);
 
         if ($pipelineBlockException !== null) {