Skip to content

Add object detection, tracking, mobile notifications, and search to any security camera.

add back wait...

roryclear2b0985042c36
diff --git a/clearcam/ViewController.m b/clearcam/ViewController.m
index a7ca0bb..9c6de14 100644
--- a/clearcam/ViewController.m
+++ b/clearcam/ViewController.m
@@ -509,7 +509,7 @@ NSMutableDictionary *classColorMap;
} else {
NSLog(@"Segment saved successfully under DayEntity with date %@", self.dayFolderName);
- [self.fileServer.context performBlock:^{
+ [self.fileServer.context performBlockAndWait:^{
NSError *mainContextError = nil;
if (![self.fileServer.context save:&mainContextError]) {
NSLog(@"Failed to save main context: %@", mainContextError.localizedDescription);