Skip to content

Commit

Permalink
Fix NPE on disconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
NaikSoftware committed Jul 9, 2018
1 parent c17b197 commit d4b9043
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ class OkHttpConnectionProvider extends AbstractConnectionProvider {
@NonNull
@Override
public void rawDisconnect() {
openedSocked.close(1000, "");
if (openedSocked != null) {
openedSocked.close(1000, "");
}
}

@Override
Expand Down

0 comments on commit d4b9043

Please sign in to comment.