Trigger the folder sync without blocking

This commit is contained in:
Vishnu Mohandas 2020-06-23 21:19:04 +05:30
parent d042d0dc2e
commit 82af9306f8

View file

@ -45,16 +45,12 @@ void _main() async {
}
void _sync() async {
FolderSharingService.instance.sync();
try {
await PhotoSyncManager.instance.sync();
} catch (e) {
logger.warning(e);
}
try {
await FolderSharingService.instance.sync();
} catch (e) {
logger.warning(e);
}
}
void _sendErrorToSentry(SentryClient sentry, Object error, StackTrace stack) {