mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 04:12:04 +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.
|
// We're done with the collector, so explicitly cancel it.
|
||||||
collector.cancel();
|
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);
|
this.roster = new Roster(this);
|
||||||
roster.reload();
|
roster.reload();
|
||||||
|
|
||||||
|
// Set presence to online.
|
||||||
|
packetWriter.sendPacket(new Presence(Presence.Type.AVAILABLE));
|
||||||
|
|
||||||
// Indicate that we're now authenticated.
|
// Indicate that we're now authenticated.
|
||||||
authenticated = true;
|
authenticated = true;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue