소스 검색

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) {