Skip to content

Commit

Permalink
Merge pull request edufolly#48 from CaiJingLong/master
Browse files Browse the repository at this point in the history
When actively disconnecting, judge the problem of state error.
  • Loading branch information
AgainPsychoX authored Jul 23, 2019
2 parents 6067e2a + 8eccd82 commit 5001903
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void connect(String address) throws IOException {

/// Disconnects current session (ignore if not connected)
public void disconnect() {
if (!isConnected()) {
if (isConnected()) {
connectionThread.cancel();
connectionThread = null;
}
Expand Down

0 comments on commit 5001903

Please sign in to comment.