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

Commit

Permalink
unbind process from network when disconnect on AndroidQ or later
Browse files Browse the repository at this point in the history
  • Loading branch information
amrsaalah authored and ThanosFisherman committed Dec 11, 2020
1 parent fda3c87 commit 4c65f07
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ public void disconnect(@NonNull DisconnectionSuccessListener disconnectionSucces
}

if (isAndroidQOrLater()) {
DisconnectCallbackHolder.getInstance().unbindProcessFromNetwork();
DisconnectCallbackHolder.getInstance().disconnect();
disconnectionSuccessListener.success();
} else {
Expand Down

0 comments on commit 4c65f07

Please sign in to comment.