wsperf won't set a timer when timeout=0

This commit is contained in:
Peter Thorson
2012-03-10 16:19:37 -06:00
parent 338ac2a574
commit 4903edbe30
4 changed files with 24 additions and 20 deletions

View File

@@ -122,7 +122,6 @@ void message_test::on_message(connection_ptr con,websocketpp::message::data_ptr
mark();
} else {
mark();
m_timer->cancel();
m_msg.reset();
m_pass = FAIL;
@@ -131,7 +130,6 @@ void message_test::on_message(connection_ptr con,websocketpp::message::data_ptr
if (m_acks == m_message_count) {
m_pass = PASS;
m_timer->cancel();
m_msg.reset();
this->end(con);
} else if (m_sync && m_pass == RUNNING) {