If user has lots of contacts, retrieving data while startup could take a while and make spark freeze for some time.
Internal patch committed to trunk
Discovered an additional spot in privacy plugin
The getInstance-method of the Privacy-Plugin could freeze spark if it takes to long.
This patch initializes the Privacy-Plugin in a thread.
Additionally, the PrivacyManager try to discover the xmppHost, if this response take to long, the host will not be discovered at all.
This patch will resolve this problem by try to discover the xmpphost again, after timeout.
r13104 = 66d153a5b14bf1f42f5a113cec0b760a890a5bee (refs/remotes/git-svn)
-remove infinite loops as it causes out of memory (in TransportUtils.java and PrivacyManager.java)
If there is really necessary to try more times, a Thread Pool may be used: java ScheduledThreadPoolExecutor for example
-remove timer task when bookmark plugin is initialized, as it very often
causes: Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: 1 > 0
when spark starts
Marking as resolved per Mircea's commit.