diff options
author | snowleo <schneeleo@gmail.com> | 2011-08-08 16:03:00 +0200 |
---|---|---|
committer | snowleo <schneeleo@gmail.com> | 2011-08-08 16:03:00 +0200 |
commit | 39f4e42f7b9b6ac350e1f7e25a086de17a93ddfc (patch) | |
tree | 96017ac7ae8b0e139dda6279eed149b9367d0bf5 /EssentialsXMPP/src/com/earth2me/essentials | |
parent | 9c2af4adbfa171ddc55bb60a497f37e8f96aab03 (diff) | |
download | Essentials-39f4e42f7b9b6ac350e1f7e25a086de17a93ddfc.tar Essentials-39f4e42f7b9b6ac350e1f7e25a086de17a93ddfc.tar.gz Essentials-39f4e42f7b9b6ac350e1f7e25a086de17a93ddfc.tar.lz Essentials-39f4e42f7b9b6ac350e1f7e25a086de17a93ddfc.tar.xz Essentials-39f4e42f7b9b6ac350e1f7e25a086de17a93ddfc.zip |
XMPP: reconnect to server, if connection is broken.
Diffstat (limited to 'EssentialsXMPP/src/com/earth2me/essentials')
-rw-r--r-- | EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java index 4ad3ad35d..f33f29416 100644 --- a/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java +++ b/EssentialsXMPP/src/com/earth2me/essentials/xmpp/XMPPManager.java @@ -68,6 +68,10 @@ public class XMPPManager extends Handler implements MessageListener, ChatManager } if (chat != null) { + if (!connection.isConnected()) { + disconnect(); + connect(); + } chat.sendMessage(message.replaceAll("ยง[0-9a-f]", "")); return true; } |