Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

fixed NPE #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ public void run() {
try {
// This is a blocking call and will only return on a
// successful connection or an exception
socket = mmServerSocket.accept();
if (socket != null) {
socket = mmServerSocket.accept();
}
} catch (IOException e) {
break;
}
Expand Down Expand Up @@ -258,8 +260,10 @@ public void run() {

public void cancel() {
try {
mmServerSocket.close();
mmServerSocket = null;
if (mmServerSocket != null) {
mmServerSocket.close();
mmServerSocket = null;
}
} catch (IOException e) { }
}

Expand Down