Skip to content

Commit

Permalink
Fix for errors not being set in XMPPStream
Browse files Browse the repository at this point in the history
  • Loading branch information
robbiehanson committed Nov 18, 2011
1 parent 5e7bf14 commit c401c55
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Core/XMPPStream.m
Expand Up @@ -1367,6 +1367,11 @@ - (BOOL)secureConnection:(NSError **)errPtr
else
dispatch_sync(xmppQueue, block);

if (errPtr)
*errPtr = [err autorelease];
else
[err release];

return result;
}

Expand Down Expand Up @@ -1496,6 +1501,11 @@ - (BOOL)registerWithPassword:(NSString *)password error:(NSError **)errPtr
else
dispatch_sync(xmppQueue, block);

if (errPtr)
*errPtr = [err autorelease];
else
[err release];

return result;
}

Expand Down

0 comments on commit c401c55

Please sign in to comment.