mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 09:09:38 +02:00
proxy: make it the caller's reponsibility to close the socket
This makes the code shorter as there is now a single place where the socket should be closed.
This commit is contained in:
parent
7b5186f651
commit
be2fc23f41
4 changed files with 123 additions and 151 deletions
|
@ -606,6 +606,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
|||
try {
|
||||
proxyInfo.getProxySocketConnection().connect(socket, host, port, timeout);
|
||||
} catch (IOException e) {
|
||||
CloseableUtil.maybeClose(socket, LOGGER);
|
||||
hostAddress.setException(e);
|
||||
failedAddresses.add(hostAddress);
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue