瀏覽代碼

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

Daniele Alessandri 15 年之前
父節點
當前提交
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) {