Skip to content

Commit

Permalink
don't invalidate all hellos OMG
Browse files Browse the repository at this point in the history
  • Loading branch information
yuxshao committed Mar 8, 2021
1 parent c65cc8b commit f92fb80
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/protocol/Hello.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ ClientHello::ClientHello(const QString &username)
: hello(CLIENT_HELLO), version(PROTOCOL_VERSION), m_username(username) {}

bool ClientHello::isValid() {
return (hello == CLIENT_HELLO) && (version == PROTOCOL_VERSION) && false;
return (hello == CLIENT_HELLO) && (version == PROTOCOL_VERSION);
}

QString ClientHello::username() { return m_username; }
Expand All @@ -29,7 +29,7 @@ ServerHello::ServerHello(qint64 uid)
: hello(SERVER_HELLO), version(PROTOCOL_VERSION), m_uid(uid) {}

bool ServerHello::isValid() {
return (hello == SERVER_HELLO && version == PROTOCOL_VERSION && m_uid != -1) && false;
return (hello == SERVER_HELLO && version == PROTOCOL_VERSION && m_uid != -1);
}

qint64 ServerHello::uid() { return m_uid; }
Expand Down

0 comments on commit f92fb80

Please sign in to comment.