mirror of
https://github.com/actualbudget/actual.git
synced 2026-04-30 10:14:53 -05:00
fix nuisance timestamp error in API (#5759)
This commit is contained in:
@@ -42,7 +42,11 @@ export async function init(config: InitConfig = {}) {
|
||||
|
||||
export async function shutdown() {
|
||||
if (actualApp) {
|
||||
await actualApp.send('sync');
|
||||
try {
|
||||
await actualApp.send('sync');
|
||||
} catch (e) {
|
||||
// most likely that no budget is loaded, so the sync failed
|
||||
}
|
||||
await actualApp.send('close-budget');
|
||||
actualApp = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user