1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-25 20:18:00 +01:00

Fix EntityTimeManager.getTime(): Set recipient JID

Fixes SMACK-716
This commit is contained in:
Florian Schmaus 2016-02-17 09:13:06 +01:00
parent a89b9301ad
commit bcdfb5398a

View file

@ -108,6 +108,8 @@ public class EntityTimeManager extends Manager {
return null;
Time request = new Time();
// TODO Add Time(Jid) constructor and use this constructor instead
request.setTo(jid);
Time response = (Time) connection().createPacketCollectorAndSend(request).nextResultOrThrow();
return response;
}