Skip to content

Commit 2c8eace

Browse files
authored
Merge pull request #3 from bringauto/BAF-841/fix_reconnect
BAF-841 / Fix reconnect sequence
2 parents 7b8116c + 8fd93ac commit 2c8eace

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ SET(CMAKE_CXX_STANDARD 20)
77
SET(CMAKE_CXX_EXTENSIONS OFF) # For increased portability
88
SET(CMAKE_POSITION_INDEPENDENT_CODE ON)
99

10-
SET(INTERNAL_CLIENT_VERSION 1.1.0)
10+
SET(INTERNAL_CLIENT_VERSION 1.1.1)
1111

1212
OPTION(BRINGAUTO_SAMPLES OFF)
1313
OPTION(BRINGAUTO_TESTS "Enable tests" OFF)

source/Communication.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ int Communication::startReconnectSequence(Context *context, struct buffer status
3131
if (Communication::sendConnectMessage(context) != OK) {
3232
return UNABLE_TO_CONNECT;
3333
}
34-
if (Communication::readConnectResponse(context) == OK) {
34+
if (Communication::readConnectResponse(context) != OK) {
3535
return UNABLE_TO_CONNECT;
3636
}
3737
if(context->sendMessage(statusMessage) <= 0) {

0 commit comments

Comments
 (0)