mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-29 07:22:07 +01:00
Remove empty lines in Socks5BytestreamManager
This commit is contained in:
parent
49aa7ce21b
commit
af6ee76f4c
1 changed files with 0 additions and 5 deletions
|
@ -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);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue