We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e72e21 commit bf83768Copy full SHA for bf83768
PBGitRevList.mm
@@ -238,6 +238,17 @@ - (void) walkRevisionListWithSpecifier:(PBGitRevSpecifier*)rev
238
239
[task terminate];
240
[task waitUntilExit];
241
+
242
+ //Nasty hack to work around ARC and bindings getting angry at each other
243
+ //Without this some of the view controllers can get released while not on the main thread, which crashes in bindings
244
+ __block PBGitRepository *tempRepository = repository;
245
246
+ double delayInSeconds = 2.0;
247
+ dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, delayInSeconds * NSEC_PER_SEC);
248
+ dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
249
+ if ([tempRepository isKindOfClass:[PBGitRepository class]]) {
250
+ }
251
+ });
252
}
253
254
@end
0 commit comments