Skip to content

Commit

Permalink
address todo
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 committed Jun 12, 2024
1 parent 492069d commit 637c861
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/client/xiopub_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,14 @@ namespace xeus
if (items[1].revents & ZMQ_POLLIN)
{
wire_msg.recv(m_controller);
// check if stop message and break ?
if (wire_msg.size() > 0)
{
std::string received_msg = wire_msg.at(0).to_string();
if (received_msg == "stop")
{
break;
}
}
}
}
catch (std::exception& e)
Expand Down

0 comments on commit 637c861

Please sign in to comment.