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()) {
try {
inputStream.close();
outputStream.close();
if (!socket.isClosed()) {
outputStream.close();
socket.close();
}
} catch (IOException ex) {