Browse Source

avoid exception if not connected

pull/759/head
orignal 8 years ago
parent
commit
f4de68cb22
  1. 3
      I2PTunnel.cpp

3
I2PTunnel.cpp

@ -92,7 +92,8 @@ namespace client
m_Stream->Close (); m_Stream->Close ();
m_Stream.reset (); m_Stream.reset ();
} }
m_Socket->shutdown(boost::asio::ip::tcp::socket::shutdown_send); // avoid RST boost::system::error_code ec;
m_Socket->shutdown(boost::asio::ip::tcp::socket::shutdown_send, ec); // avoid RST
m_Socket->close (); m_Socket->close ();
Done(shared_from_this ()); Done(shared_from_this ());

Loading…
Cancel
Save