1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-22 06:12:05 +01:00

Remove empty lines in Socks5BytestreamManager

This commit is contained in:
Florian Schmaus 2019-06-02 10:41:39 +02:00
parent 49aa7ce21b
commit af6ee76f4c

View file

@ -490,12 +490,10 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
streamHosts.remove(selectedStreamHost); streamHosts.remove(selectedStreamHost);
streamHosts.add(0, selectedStreamHost); streamHosts.add(0, selectedStreamHost);
} }
} }
Socks5Proxy socks5Proxy = Socks5Proxy.getSocks5Proxy(); Socks5Proxy socks5Proxy = Socks5Proxy.getSocks5Proxy();
try { try {
// add transfer digest to local proxy to make transfer valid // add transfer digest to local proxy to make transfer valid
socks5Proxy.addTransfer(digest); socks5Proxy.addTransfer(digest);
@ -527,17 +525,14 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
// negotiation successful, return the output stream // negotiation successful, return the output stream
return new Socks5BytestreamSession(socket, usedStreamHost.getJID().equals( return new Socks5BytestreamSession(socket, usedStreamHost.getJID().equals(
connection.getUser())); connection.getUser()));
} }
catch (TimeoutException e) { catch (TimeoutException e) {
throw new IOException("Timeout while connecting to SOCKS5 proxy", e); throw new IOException("Timeout while connecting to SOCKS5 proxy", e);
} }
finally { finally {
// remove transfer digest if output stream is returned or an exception // remove transfer digest if output stream is returned or an exception
// occurred // occurred
socks5Proxy.removeTransfer(digest); socks5Proxy.removeTransfer(digest);
} }
} }