Fix disconnect socket closing to make it work with java 8
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user