1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-06-16 16:44:48 +02:00

Try that Roster is loaded after Roster.getInstaceFor(XMPPConnection)

Fixes SMACK-633
This commit is contained in:
Florian Schmaus 2015-05-15 17:02:52 +02:00
parent 001e824fb9
commit 8dd12e7220

View file

@ -238,7 +238,7 @@ public final class Roster extends Manager {
// If the connection is already established, call reload // If the connection is already established, call reload
if (connection.isAuthenticated()) { if (connection.isAuthenticated()) {
try { try {
reload(); reloadAndWait();
} }
catch (InterruptedException | SmackException e) { catch (InterruptedException | SmackException e) {
LOGGER.log(Level.SEVERE, "Could not reload Roster", e); LOGGER.log(Level.SEVERE, "Could not reload Roster", e);