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
1 changed files with 2 additions and 0 deletions

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;
}