Permalink
Browse files

Bug fix for TURNSocket. Fixes issue #98

  • Loading branch information...
robbiehanson committed Sep 1, 2011
1 parent 398951c commit 9dcc5108d9ba9e287b2eac26a1827921ac8c7250
Showing with 4 additions and 2 deletions.
  1. +4 −2 Extensions/XEP-0065/TURNSocket.m
@@ -1020,12 +1020,14 @@ - (void)targetNextConnect
proxyPort = [[[streamhost attributeForName:@"port"] stringValue] intValue];
- NSAssert([asyncSocket isDisconnected], @"Expecting the socket to be disconnected at this point...");
-
if (asyncSocket == nil)
{
asyncSocket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:turnQueue];
}
+ else
+ {
+ NSAssert([asyncSocket isDisconnected], @"Expecting the socket to be disconnected at this point...");
+ }
XMPPLogVerbose(@"TURNSocket: targetNextConnect: %@(%@:%hu)", [proxyJID full], proxyHost, proxyPort);

0 comments on commit 9dcc510

Please sign in to comment.