Skip to content

Commit

Permalink
Fix bug with disconnect crashing the app
Browse files Browse the repository at this point in the history
  • Loading branch information
gnufied committed Jan 5, 2015
1 parent fccb47f commit b07f897
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rbkit-lib/zmqsockets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ bool RBKit::ZmqCommandSocket::performHandShake()
bool sent = socket->sendMessage(msg);
if(sent) {
QByteArray response = socket->receiveBlockingMessage();
if (response.isEmpty()) {
return false;
}
EventParser parser(response);
EvtHandshake *handShake = parser.parseHandShake();
RBKit::AppState::getInstance()->setAppState("process_name", handShake->processName);
Expand Down

0 comments on commit b07f897

Please sign in to comment.