Skip to content

Commit

Permalink
fix bug:issue_2
Browse files Browse the repository at this point in the history
fix bug:issue_2(newOcean#2) to make sure onICEServers: method will be incoked before onOpen method in APPRTCAppDelegate.
  • Loading branch information
YK-Unit committed Mar 6, 2014
1 parent b60e636 commit 4e517c9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ios-example/AppRTCDemo/APPRTCAppClient.m
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,8 @@ - (void)updateICEServers:(NSMutableArray *)ICEServers

dispatch_async(dispatch_get_main_queue(), ^(void) {
[self.ICEServerDelegate onICEServers:ICEServers];

self.gaeChannel = [[GAEChannelClient alloc] initWithToken:self.token delegate:self.messageHandler];
});
});
}
Expand Down Expand Up @@ -350,9 +352,8 @@ - (void)connectionDidFinishLoading:(NSURLConnection *)connection {
[self maybeLogMessage:
[NSString stringWithFormat:@"About to open GAE with token: %@",
self.token]];
self.gaeChannel =
[[GAEChannelClient alloc] initWithToken:self.token
delegate:self.messageHandler];

//self.gaeChannel = [[GAEChannelClient alloc] initWithToken:self.token delegate:self.messageHandler];
}

@end

0 comments on commit 4e517c9

Please sign in to comment.