We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b196fa7 commit d1c73b7Copy full SHA for d1c73b7
src/internal/sio_client_impl.cpp
@@ -382,6 +382,12 @@ namespace sio
382
383
void client_impl::on_fail(connection_hdl)
384
{
385
+ if (m_con_state == con_closing) {
386
+ LOG("Connection failed while closing." << endl);
387
+ this->close();
388
+ return;
389
+ }
390
+
391
m_con.reset();
392
m_con_state = con_closed;
393
this->sockets_invoke_void(&sio::socket::on_disconnect);
@@ -404,6 +410,12 @@ namespace sio
404
410
405
411
void client_impl::on_open(connection_hdl con)
406
412
413
414
+ LOG("Connection opened while closing." << endl);
415
416
417
418
407
419
LOG("Connected." << endl);
408
420
m_con_state = con_opened;
409
421
m_con = con;
0 commit comments