Skip to content

Commit

Permalink
get app delegate from develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Kacper-RF committed Aug 4, 2023
1 parent 1cefdca commit ec16860
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/mobile/ios/Quiet/AppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ - (void) spinupBackend:(BOOL)init {

// (2/6) Spawn tor with proper configuration

self.tor = [TorHandler new];

self.torConfiguration = [self.tor getTorConfiguration:socksPort controlPort:controlPort httpTunnelPort:httpTunnelPort];

[self.tor removeOldAuthCookieWithConfiguration:self.torConfiguration];

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
self.tor = [TorHandler new];

self.torConfiguration = [self.tor getTorConfiguration:socksPort controlPort:controlPort httpTunnelPort:httpTunnelPort];

[self.tor removeOldAuthCookieWithConfiguration:self.torConfiguration];

[self.tor spawnWithConfiguration:self.torConfiguration];
});

Expand Down Expand Up @@ -163,9 +163,9 @@ - (void) spinupBackend:(BOOL)init {
// (6/6) Launch backend or reviwe services

dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{

NSString *authCookie = [self getAuthCookie];

if (init) {
[self launchBackend:controlPort :httpTunnelPort :authCookie];
} else {
Expand Down

0 comments on commit ec16860

Please sign in to comment.