Fix disconnect socket closing to make it work with java 8

This commit is contained in:
Marcos Lilljedahl
2014-11-06 22:45:04 -03:00
parent fe261c7784
commit 161e509178

View File

@@ -155,8 +155,8 @@ public class Connection implements Closeable {
if (isConnected()) { if (isConnected()) {
try { try {
inputStream.close(); inputStream.close();
outputStream.close();
if (!socket.isClosed()) { if (!socket.isClosed()) {
outputStream.close();
socket.close(); socket.close();
} }
} catch (IOException ex) { } catch (IOException ex) {