Skip to content

Commit

Permalink
add method to avoid reconnection with xoauth token
Browse files Browse the repository at this point in the history
  • Loading branch information
ramabit committed Jul 12, 2016
1 parent 530367f commit a653af8
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,13 @@ public synchronized AbstractXMPPConnection connect()
*/
private Resourcepart usedResource;

/**
* Method to avoid reconnection using token.
*/
public void avoidTokenReconnection() {
usedToken = null;
}

/**
* Logs in to the server using the strongest SASL mechanism supported by the
* server. If more than the connection's default stanza(/packet) timeout
Expand Down

0 comments on commit a653af8

Please sign in to comment.