fix i2ptunnel

This commit is contained in:
dg2-new
2014-04-21 20:59:29 +00:00
parent 49f4f3398d
commit 490727b401
2 changed files with 2 additions and 4 deletions

View File

@ -1415,8 +1415,6 @@ public class I2PTunnel extends EventDispatcherImpl implements Logging {
//_log.error(getPrefix() + "Error generating keys to out", ioe);
//notifyEvent("genkeysResult", "error");
return;
} finally {
if(pubdest != null) try { pubdest.close(); } catch(IOException ioe) {}
}
} else if (args.length != 1) {
l.log("genkeys <privkeyfile> [<pubkeyfile>]\n" +
@ -1438,6 +1436,8 @@ public class I2PTunnel extends EventDispatcherImpl implements Logging {
l.log("Error generating keys - " + ioe.getMessage());
//notifyEvent("genkeysResult", "error");
//_log.error(getPrefix() + "Error generating keys", ioe);
} finally {
if(pubdest != null) try { pubdest.close(); } catch(IOException ioe) {}
}
}

View File

@ -575,8 +575,6 @@ public class SOCKS5Server extends SOCKSServer {
throw new SOCKSException("Outproxy rejected request, response = " + reply);
// throw away the address in the response
// todo pass the response through?
out.close();
in.close();
} catch (IOException e) {
try { destSock.close(); } catch (IOException ioe) {}
throw e;