Exit even when empty response is receievd
This commit is contained in:
parent
a82c4403b7
commit
6cbfab6b72
1 changed files with 3 additions and 0 deletions
|
@ -371,6 +371,9 @@ static void handleDataRead(boost::shared_ptr<Swift::Connection> m_conn, boost::s
|
|||
m_conn->onDataRead.disconnect(boost::bind(&handleDataRead, m_conn, _1));
|
||||
m_conn->disconnect();
|
||||
response = payload.config();
|
||||
if (response.empty()) {
|
||||
response = "Empty response";
|
||||
}
|
||||
std::cout << payload.config() << "\n";
|
||||
// exit(0);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue