Skip to content

Commit

Permalink
fix race condition in disconnect-reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
or-else committed Sep 19, 2020
1 parent 04011f9 commit 2d2df4f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tinodesdk/src/main/java/co/tinode/tinodesdk/Tinode.java
Original file line number Diff line number Diff line change
Expand Up @@ -1457,6 +1457,7 @@ public void setAutoLoginBasic(String uname, String password) {
*/
public void disconnect() {
setAutoLogin(null, null);
mConnAuth = false;
if (mConnection != null) {
mConnection.disconnect();
}
Expand Down

0 comments on commit 2d2df4f

Please sign in to comment.