Skip to content

Commit

Permalink
Removed dispatch_once for iCloud singleton
Browse files Browse the repository at this point in the history
  • Loading branch information
Atul M committed Nov 22, 2016
1 parent 3ec97e1 commit 4fa3a3f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Settings/Network/BKiCloudSyncHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ @interface BKiCloudSyncHandler ()
@implementation BKiCloudSyncHandler

+ (id)sharedHandler{
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
if(sharedHandler == nil){
sharedHandler = [[self alloc] init];
});
}
return sharedHandler;
}

Expand Down

0 comments on commit 4fa3a3f

Please sign in to comment.