Skip to content

Commit

Permalink
Minor bugfix for XMPPTime
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiehanson committed Aug 10, 2011
1 parent 1554ff4 commit d87d078
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Extensions/XEP-0202/XMPPTime.m
Expand Up @@ -234,7 +234,10 @@ - (void)handleResponse:(XMPPIQ *)iq withInfo:(XMPPTimeQueryInfo *)queryInfo
{ {
if (iq) if (iq)
{ {
[multicastDelegate xmppTime:self didReceiveResponse:iq withRTT:[queryInfo rtt]]; if ([[iq type] isEqualToString:@"result"])
[multicastDelegate xmppTime:self didReceiveResponse:iq withRTT:[queryInfo rtt]];
else
[multicastDelegate xmppTime:self didNotReceiveResponse:[queryInfo elementID] dueToTimeout:-1.0];
} }
else else
{ {
Expand Down

0 comments on commit d87d078

Please sign in to comment.