浏览代码

Fix bug when checking for support for the UNWATCH command.

Daniele Alessandri 11 年之前
父节点
当前提交
ca4ec79575
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/Predis/Transaction/MultiExec.php

+ 1 - 1
lib/Predis/Transaction/MultiExec.php

@@ -255,7 +255,7 @@ class MultiExec implements BasicClientInterface, ExecutableContextInterface
      */
     public function unwatch()
     {
-        if (!$this->client->getProfile()->supportsCommand('WATCH')) {
+        if (!$this->client->getProfile()->supportsCommand('UNWATCH')) {
             throw new NotSupportedException('UNWATCH is not supported by the current profile.');
         }