writeCommand must be called in sendCommand

This commit is contained in:
fbraem 2015-10-26 14:34:46 +01:00
parent 1a6dbd0b2d
commit 4dc1d2f62d

View File

@ -98,7 +98,7 @@ public:
/// A BadCastException will be thrown, when the reply is not of the /// A BadCastException will be thrown, when the reply is not of the
/// given type. /// given type.
{ {
sendCommand(command); writeCommand(command);
readReply(result); readReply(result);
} }
@ -119,7 +119,7 @@ public:
} }
if ( redisResult->type() == ElementTraits<T>::TypeId ) if ( redisResult->type() == ElementTraits<T>::TypeId )
result = ((Type<T>*) redisResult.get())->value(); result = ((Type<T>*) redisResult.get())->value();
else throw BadCastException(); else throw BadCastException();
} }
void sendCommands(const std::vector<Array>& commands, void sendCommands(const std::vector<Array>& commands,