File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -273,7 +273,8 @@ namespace sio
273
273
{
274
274
if (ec || m_con.expired ())
275
275
{
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);
277
278
return ;
278
279
}
279
280
packet p (packet::frame_ping);
Original file line number Diff line number Diff line change @@ -316,6 +316,9 @@ namespace sio
316
316
void socket::impl::on_close ()
317
317
{
318
318
NULL_GUARD (m_client);
319
+ sio::client_impl *client = m_client;
320
+ m_client = NULL ;
321
+
319
322
if (m_connection_timer)
320
323
{
321
324
m_connection_timer->cancel ();
@@ -325,9 +328,8 @@ namespace sio
325
328
while (!m_packet_queue.empty ()) {
326
329
m_packet_queue.pop ();
327
330
}
328
- m_client->on_socket_closed (m_nsp);
329
- m_client->remove_socket (m_nsp);
330
- m_client = NULL ;
331
+ client->on_socket_closed (m_nsp);
332
+ client->remove_socket (m_nsp);
331
333
}
332
334
333
335
void socket::impl::on_open ()
You can’t perform that action at this time.
0 commit comments