mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-30 05:37:43 +00:00
Socket can't be null
This commit is contained in:
parent
f6c4084746
commit
fec0b34330
@ -67,20 +67,12 @@ public class LanLink extends BaseLink {
|
||||
|
||||
@Override
|
||||
public void disconnect() {
|
||||
|
||||
Log.i("LanLink/Disconnect","socket:"+ socket.hashCode());
|
||||
|
||||
if (socket == null) {
|
||||
Log.w("KDE/LanLink", "Not yet connected");
|
||||
return;
|
||||
}
|
||||
|
||||
try {
|
||||
socket.close();
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//Returns the old socket
|
||||
|
Loading…
x
Reference in New Issue
Block a user