mirror of
https://github.com/socketio/socket.io-client-cpp.git
synced 2026-06-10 20:36:14 +00:00
fix: fix LOG call syntax (#301)
Related: https://github.com/socketio/socket.io-client-cpp/issues/212
This commit is contained in:
parent
b1216ee428
commit
c09221f357
@ -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);
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user