Merge pull request #2662 from jpk68/ntcp2-throw

libi2pd: don't throw on macos if socket isn't opened
This commit is contained in:
orignal authored and GitHub committed 2026-12-01 07:37:59 -05:00
commit a3acaaa42e
1 file changed
+1 -1
+1 -1
View File
@@ -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)