1
0
mirror of https://github.com/essentials/Essentials.git synced 2025-08-05 22:27:23 +02:00

XMPP: reconnect to server, if connection is broken.

This commit is contained in:
snowleo
2011-08-08 16:03:00 +02:00
parent 9c2af4adbf
commit 39f4e42f7b

View File

@@ -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;
}