Fix NullPointerException
This commit is contained in:
parent
f6d829e575
commit
6ac02f96cb
|
@ -63,7 +63,7 @@ public class ConnectionEstablisher extends Thread {
|
|||
public void close() {
|
||||
try {
|
||||
interrupt();
|
||||
if (socket.isConnected()) socket.close();
|
||||
if (socket != null && socket.isConnected()) socket.close();
|
||||
} catch (IOException ignored) {
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue