Skip to content

Commit c073835

Browse files
committed
socket_client: fix CheckAck() to return false for NACK
1 parent 5384e52 commit c073835

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

socket_client.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ bool SocketClient::CheckAck() {
191191
QByteArray ack;
192192
success = ReadAll(ack);
193193

194-
if (success && (kAck == ack)) {
195-
success = true;
194+
if (success && (kAck != ack)) {
195+
success = false;
196196
}
197197

198198
return success;

0 commit comments

Comments
 (0)