Fix bug when checking for support for the UNWATCH command.

This commit is contained in:
Daniele Alessandri
2014-07-16 11:17:21 +02:00
parent 2e0c55ac57
commit ca4ec79575
+1 -1
View File
@@ -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.');
}