1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 14:02:06 +01:00

Cleanup listening socket

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7617 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Alex Wenckus 2007-03-21 04:21:30 +00:00 committed by alex
parent c95c8b7e3a
commit 02b6924b99

View file

@ -281,6 +281,8 @@ public class Socks5TransferNegotiator extends StreamNegotiator {
process = null;
}
Socket conn;
try {
String localIP;
try {
localIP = discoverLocalIP();
@ -294,9 +296,13 @@ public class Socks5TransferNegotiator extends StreamNegotiator {
// if the local host is one of the options we need to wait for the
// remote connection.
Socket conn = waitForUsedHostResponse(sessionID, process, createDigest(
conn = waitForUsedHostResponse(sessionID, process, createDigest(
sessionID, initiator, target), query).establishedSocket;
}
finally {
cleanupListeningSocket();
}
return conn;
}