Fix assert when Connection::readCommand() returns invalid cmd
We immediatelly tries to cast the result to StreamPayloadResponse, which would hit the copy-ctor assert in Protocol if the method returned an invalid Protocol::Command. Instead we now work with Command and only cast to StreamPayloadResponse if we are sure the method call returned a valid command.
parent
be28aa65
Please register or sign in to comment