Skip to content

Commit

Permalink
Add instant disconnection
Browse files Browse the repository at this point in the history
  • Loading branch information
nikialeksey committed Mar 19, 2024
1 parent aba0daa commit 5b4b444
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -953,6 +953,15 @@ public void disconnect() {
}
}

/**
* Performs an unclean disconnect and shutdown of the connection.
* Does not send offline presence to stream. Does not send a closing stream stanza.
*/
public void disconnectInstant() {
instantShutdown();
callConnectionClosedListener();
}

/**
* Closes the connection. A custom unavailable presence is sent to the server, followed
* by closing the stream. The XMPPConnection can still be used for connecting to the server
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.4.4-intermedia-1.3.1
4.4.4-intermedia-1.4.1

0 comments on commit 5b4b444

Please sign in to comment.