mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-12-05 02:44:36 +00:00
Merge pull request #2662 from jpk68/ntcp2-throw
libi2pd: don't throw on macos if socket isn't opened
This commit is contained in:
1 file changed
+1
-1
+1
-1
@@ -586,7 +586,7 @@ namespace transport
|
||||
m_IsEstablished = false;
|
||||
boost::system::error_code ec;
|
||||
#ifdef MAC_OSX
|
||||
m_Socket.cancel ();
|
||||
m_Socket.cancel (ec);
|
||||
#endif
|
||||
m_Socket.shutdown(boost::asio::ip::tcp::socket::shutdown_both, ec);
|
||||
if (ec)
|
||||
|
||||
Reference in new issue
Block a user