Skip to content

Commit a725bb6

Browse files
author
Patrick Kwong
committed
skip LOG in ping due to deadline_timer cancel
1 parent 27c432d commit a725bb6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/internal/sio_client_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ namespace sio
273273
{
274274
if(ec || m_con.expired())
275275
{
276-
LOG("ping exit,con is expired?"<<m_con.expired()<<",ec:"<<ec.message()<<endl);
276+
if (ec != boost::asio::error::operation_aborted)
277+
LOG("ping exit,con is expired?"<<m_con.expired()<<",ec:"<<ec.message()<<endl);
277278
return;
278279
}
279280
packet p(packet::frame_ping);

0 commit comments

Comments
 (0)