Send the version when disconnecting because of an invalid auth code.

This commit is contained in:
Andreas 2013-02-08 19:27:56 +01:00
parent 8175e23f91
commit 0c7354dba6
1 changed files with 4 additions and 0 deletions

View File

@ -97,6 +97,10 @@ void RemoteClient::ParseMessage(const QByteArray &data) {
void RemoteClient::DisconnectClientWrongAuthCode() {
pb::remote::Message msg;
msg.set_type(pb::remote::DISCONNECT);
// Send the default version
msg->set_version(msg->default_instance().version());
msg.mutable_response_disconnect()->set_reason_disconnect(pb::remote::Wrong_Auth_Code);
SendData(&msg);