mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-26 00:02:06 +01:00
Fixed bug where presence packets lost due to roster being created too late.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1988 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
e256a1d149
commit
1bee6a7e60
1 changed files with 4 additions and 3 deletions
|
@ -309,13 +309,14 @@ public class XMPPConnection {
|
|||
}
|
||||
// We're done with the collector, so explicitly cancel it.
|
||||
collector.cancel();
|
||||
// Set presence to online.
|
||||
packetWriter.sendPacket(new Presence(Presence.Type.AVAILABLE));
|
||||
|
||||
// Finally, create the roster.
|
||||
// Create the roster.
|
||||
this.roster = new Roster(this);
|
||||
roster.reload();
|
||||
|
||||
// Set presence to online.
|
||||
packetWriter.sendPacket(new Presence(Presence.Type.AVAILABLE));
|
||||
|
||||
// Indicate that we're now authenticated.
|
||||
authenticated = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue