mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
Added ability to sign off with a custom presence packet (SMACK-195).
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@7081 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
5f9456db0d
commit
322292cad9
2 changed files with 20 additions and 4 deletions
|
@ -213,7 +213,7 @@ class PacketReader {
|
|||
void notifyConnectionError(Exception e) {
|
||||
done = true;
|
||||
// Closes the connection temporary. A reconnection is possible
|
||||
connection.shutdown();
|
||||
connection.shutdown(new Presence(Presence.Type.unavailable));
|
||||
// Print the stack trace to help catch the problem
|
||||
e.printStackTrace();
|
||||
// Notify connection listeners of the error.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue