Move reconnection handling code and remove redundant method
@@ -1097,7 +1097,13 @@ public class GroupChatRoom extends ChatRoom
@Override
public void authenticated( XMPPConnection xmppConnection, boolean b )
{
- reconnectionSuccessful();
+ final EntityBareJid roomJID = chat.getRoom();
+ final String roomName = tabTitle;
+ isActive = false;
+ EventQueue.invokeLater( () -> {
+ ConferenceUtils.joinConferenceOnSeperateThread( roomName, roomJID, password );
+ closeChatRoom();
+ } );
}
@Override
@@ -1124,17 +1130,6 @@ public class GroupChatRoom extends ChatRoom
this.password = password;
}
- private void reconnectionSuccessful()
- {
- final EntityBareJid roomJID = chat.getRoom();
- final String roomName = tabTitle;
- isActive = false;
- EventQueue.invokeLater( () -> {
- ConferenceUtils.joinConferenceOnSeperateThread( roomName, roomJID, password );
- closeChatRoom();
- } );
- }
-
/**
* Is called whenever Spark was unexpectedly disconnected.
*/
