Browse Source

Fix bug when checking for support for the UNWATCH command.

Daniele Alessandri 11 years ago
parent
commit
ca4ec79575
1 changed files with 1 additions and 1 deletions
  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.');
         }