Skip to content

Commit

Permalink
serialize data on network error
Browse files Browse the repository at this point in the history
  • Loading branch information
elfredpagan committed Mar 4, 2012
1 parent 3a7d943 commit 7667d4a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MPLib/MixpanelAPI.m
Expand Up @@ -403,6 +403,7 @@ - (void)connection:(NSURLConnection *)connection didFailWithError:(NSError *)err
self.eventsToSend = nil;
self.responseData = nil;
self.connection = nil;
[self archiveData];
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
[[UIApplication sharedApplication] setNetworkActivityIndicatorVisible:NO];
#if __IPHONE_OS_VERSION_MAX_ALLOWED >= 40000
Expand Down

0 comments on commit 7667d4a

Please sign in to comment.