powered by Jive Software

MultiUserChat room listeners are not reattached to xmpp connection on reconnect

Hi, I guess there is an issue in RoomListenerMultiplexor.java . When the xmpp server (I use ejabberd) is not available , connectionClosed() method called which removes packet and connection listeners:

connection.removeConnectionListener(this);

connection.removePacketListener(listener);

When connection is restored listeners are not attached back.

Right, thanks for reporting SMACK-571.

On a side note (don’t know if it’s already fixed): The connection does not auto-re-join a MUC room after reconnecting.

Good point, tracked separately as SMACK-572. As of now SMACK-571 is only helpful if you manually rejoin rooms after reconnect or if xep198 (not yet in Smack) is used.