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