Skip to content

Commit

Permalink
fix: fix LOG call syntax (#301)
Browse files Browse the repository at this point in the history
Related: #212
  • Loading branch information
richardeakin authored and darrachequesne committed Apr 23, 2021
1 parent b1216ee commit c09221f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/internal/sio_client_impl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ namespace sio
if(ec || m_con.expired())
{
if (ec != asio::error::operation_aborted)
LOG("ping exit,con is expired?"<<m_con.expired()<<",ec:"<<ec.message()<<endl){};
LOG("ping exit,con is expired?"<<m_con.expired()<<",ec:"<<ec.message()<<endl);
return;
}
packet p(packet::frame_ping);
Expand Down Expand Up @@ -500,7 +500,7 @@ namespace sio
m_ping_timer.reset(new asio::steady_timer(m_client.get_io_service()));
asio::error_code ec;
m_ping_timer->expires_from_now(milliseconds(m_ping_interval), ec);
if(ec)LOG("ec:"<<ec.message()<<endl){};
if(ec)LOG("ec:"<<ec.message()<<endl);
m_ping_timer->async_wait(std::bind(&client_impl::ping,this, std::placeholders::_1));
LOG("On handshake,sid:"<<m_sid<<",ping interval:"<<m_ping_interval<<",ping timeout"<<m_ping_timeout<<endl);
return;
Expand Down

0 comments on commit c09221f

Please sign in to comment.