mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-30 20:24:15 +00:00
close relay socket if associate socket gets closed
This commit is contained in:
parent
1738d118f7
commit
4ed4e8708e
@ -1288,6 +1288,7 @@ namespace transport
|
||||
LogPrint(eLogWarning, "SSU2: Proxy UDP Associate socket error ", ecode.message());
|
||||
m_UDPAssociateSocket.reset (nullptr);
|
||||
m_ProxyRelayEndpoint.reset (nullptr);
|
||||
m_SocketV4.close ();
|
||||
ConnectToProxy (); // try to reconnect immediately
|
||||
}
|
||||
else
|
||||
@ -1310,6 +1311,7 @@ namespace transport
|
||||
{
|
||||
m_UDPAssociateSocket.reset (nullptr);
|
||||
m_ProxyRelayEndpoint.reset (nullptr);
|
||||
LogPrint(eLogInfo, "SSU2: Reconnecting to proxy");
|
||||
ConnectToProxy ();
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user