Skip to content

Commit

Permalink
socket_client: fix CheckAck() to return false for NACK
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor-Misic committed Jul 11, 2022
1 parent 5384e52 commit c073835
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions socket_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,8 +191,8 @@ bool SocketClient::CheckAck() {
QByteArray ack;
success = ReadAll(ack);

if (success && (kAck == ack)) {
success = true;
if (success && (kAck != ack)) {
success = false;
}

return success;
Expand Down

0 comments on commit c073835

Please sign in to comment.