Skip to content

Commit c09221f

Browse files
richardeakindarrachequesne
authored andcommitted
fix: fix LOG call syntax (#301)
Related: #212
1 parent b1216ee commit c09221f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/internal/sio_client_impl.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ namespace sio
286286
if(ec || m_con.expired())
287287
{
288288
if (ec != asio::error::operation_aborted)
289-
LOG("ping exit,con is expired?"<<m_con.expired()<<",ec:"<<ec.message()<<endl){};
289+
LOG("ping exit,con is expired?"<<m_con.expired()<<",ec:"<<ec.message()<<endl);
290290
return;
291291
}
292292
packet p(packet::frame_ping);
@@ -500,7 +500,7 @@ namespace sio
500500
m_ping_timer.reset(new asio::steady_timer(m_client.get_io_service()));
501501
asio::error_code ec;
502502
m_ping_timer->expires_from_now(milliseconds(m_ping_interval), ec);
503-
if(ec)LOG("ec:"<<ec.message()<<endl){};
503+
if(ec)LOG("ec:"<<ec.message()<<endl);
504504
m_ping_timer->async_wait(std::bind(&client_impl::ping,this, std::placeholders::_1));
505505
LOG("On handshake,sid:"<<m_sid<<",ping interval:"<<m_ping_interval<<",ping timeout"<<m_ping_timeout<<endl);
506506
return;

0 commit comments

Comments
 (0)