diff --git a/Signal/src/AppDelegate.m b/Signal/src/AppDelegate.m index dd8ef46dd..d445c1ce9 100644 --- a/Signal/src/AppDelegate.m +++ b/Signal/src/AppDelegate.m @@ -168,15 +168,19 @@ static NSString *const kURLHostVerifyPrefix = @"verify"; [AppStoreRating setupRatingLibrary]; }]; - [[TSAccountManager sharedInstance] ifRegistered:NO runAsync:^{ - dispatch_async(dispatch_get_main_queue(), ^{ - UITapGestureRecognizer *gesture = [[UITapGestureRecognizer alloc] initWithTarget:[Pastelog class] - action:@selector(submitLogs)]; - gesture.numberOfTapsRequired = 8; - [self.window addGestureRecognizer:gesture]; - }); - RTCInitializeSSL(); - }]; + [[TSAccountManager sharedInstance] + ifRegistered:NO + runAsync:^{ + dispatch_async(dispatch_get_main_queue(), ^{ + [TSSocketManager requestSocketOpen]; + + UITapGestureRecognizer *gesture = + [[UITapGestureRecognizer alloc] initWithTarget:[Pastelog class] action:@selector(submitLogs)]; + gesture.numberOfTapsRequired = 8; + [self.window addGestureRecognizer:gesture]; + }); + RTCInitializeSSL(); + }]; return YES; }