Re: Calling subscribe() causes a fake reconnect
From: Jakob Schroeter <js@xxxxxxxxxx>
Date: Sat, 3 Oct 2009 18:12:16 +0200 (CEST)
Quoting Jakob Schroeter <js@xxxxxxxxxx>:


Quoting Rob Napier <rnapier@xxxxxxxxx>:

I'm not certain if this is a bug in the older version of gloox we're running (beta4 I believe), or a problem in my code or my understanding. Whenever I call subscribe(), I get an onConnect(), handleRoster(), and a lot more traffic than I'm expecting or want.

Hm, I can't seem to reproduce this with RC1. Is there any chance you could update to a more recent version?

Just had a look at beta4's source. There's a context check missing in RosterManager that'll cause the behavior you are seeing. It's been fixed since then.

cheers,
Jakob