From 4e129cd87e70da5f32e6117cd97a417b42c2585d Mon Sep 17 00:00:00 2001 From: giomfo Date: Thu, 17 Mar 2016 14:32:56 +0100 Subject: [PATCH] Fix typo --- MatrixKit/Models/Account/MXKAccount.m | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/MatrixKit/Models/Account/MXKAccount.m b/MatrixKit/Models/Account/MXKAccount.m index e5fa95cc6..b54727606 100644 --- a/MatrixKit/Models/Account/MXKAccount.m +++ b/MatrixKit/Models/Account/MXKAccount.m @@ -951,16 +951,16 @@ - (void)cancelBackgroundSync } } - [self onBackgroundSyncDoneWithError:[[NSError alloc] init]]; + [self onBackgroundSyncDone:[[NSError alloc] init]]; } } -- (void)onBackgroundSyncDoneWithError:(NSError*)error +- (void)onBackgroundSyncDone:(NSError*)error { if (backgroundSyncTimer) { [backgroundSyncTimer invalidate]; - backgroundSyncTimer = NULL; + backgroundSyncTimer = nil; } if (backgroundSyncfails && error) @@ -973,8 +973,8 @@ - (void)onBackgroundSyncDoneWithError:(NSError*)error backgroundSyncDone(); } - backgroundSyncDone = NULL; - backgroundSyncfails = NULL; + backgroundSyncDone = nil; + backgroundSyncfails = nil; if (backgroundSyncBgTask != UIBackgroundTaskInvalid) { @@ -988,7 +988,7 @@ - (void)onBackgroundSyncDoneWithError:(NSError*)error { // Cancel background task [[UIApplication sharedApplication] endBackgroundTask:localBackgroundSyncBgTask]; - NSLog(@"[MXKAccount] onBackgroundSyncDoneWithError : %08lX stop", (unsigned long)localBackgroundSyncBgTask); + NSLog(@"[MXKAccount] onBackgroundSyncDone: %08lX stop", (unsigned long)localBackgroundSyncBgTask); } }); } @@ -1038,13 +1038,13 @@ - (void)backgroundSync:(unsigned int)timeout success:(void (^)())success failure [mxSession backgroundSync:timeout success:^{ NSLog(@"[MXKAccount] the background Sync succeeds"); - [self onBackgroundSyncDoneWithError:NULL]; + [self onBackgroundSyncDone:nil]; } failure:^(NSError* error) { NSLog(@"[MXKAccount] the background Sync fails"); - [self onBackgroundSyncDoneWithError:error]; + [self onBackgroundSyncDone:error]; }