Exit even when empty response is receievd

This commit is contained in:
Jan Kaluza 2012-12-12 14:32:31 +01:00
parent a82c4403b7
commit 6cbfab6b72

View file

@ -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);
}