Skip to content

Commit

Permalink
Reset communication when socket is disconnected
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr committed Sep 2, 2024
1 parent f8f697f commit cdbac87
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libshviotqt/src/rpc/clientconnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,7 @@ void ClientConnection::onSocketConnectedChanged(bool is_connected)
}
else {
shvInfo() << objectName() << "connection id:" << connectionId() << "Socket disconnected from RPC server";
socket()->resetCommunication();
setState(State::NotConnected);
}
}
Expand Down

0 comments on commit cdbac87

Please sign in to comment.