id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	distribution	status_field
1406	changing Jabber server does not always connect to the new server	sascha_silbe	tomeu	"presenceservice.py contains the following code:

{{{
    def RestartServerConnection(self):
        """"""Stop and restart the server_plugin.
        
        This allows changing jabber servers without restarting Sugar.
        """"""
        if self._server_plugin:
            if self._server_plugin.status == CONNECTION_STATUS_CONNECTED:
                self._server_plugin.cleanup()
                self._server_plugin.start()
}}}

As you see it only connects to the new server if there already was a working connection to the previous one. This will cause a significant delay (up to 5 minutes) before connecting to the new server as we need to wait for the retry timeout to expire (encountered up to 160s myself during testing).

"	defect	new	Unspecified by Maintainer	Unspecified by Release Team	sugar-presence-service	0.88.x	Minor				Unspecified	New
