mirror of
https://github.com/predis/predis.git
synced 2026-08-28 11:09:49 +00:00
Fix bug when checking for support for the UNWATCH command.
This commit is contained in:
@@ -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.');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user