Increase the timeout for database updates
This commit is contained in:
parent
04e8ebb270
commit
e086d521f1
1 changed files with 3 additions and 1 deletions
|
@ -17,6 +17,8 @@ ipcRenderer.setMaxListeners(0);
|
||||||
// .save(
|
// .save(
|
||||||
// .destroy(
|
// .destroy(
|
||||||
|
|
||||||
|
const DATABASE_UPDATE_TIMEOUT = 2 * 60 * 1000; // two minutes
|
||||||
|
|
||||||
const SQL_CHANNEL_KEY = 'sql-channel';
|
const SQL_CHANNEL_KEY = 'sql-channel';
|
||||||
const ERASE_SQL_KEY = 'erase-sql-key';
|
const ERASE_SQL_KEY = 'erase-sql-key';
|
||||||
const ERASE_ATTACHMENTS_KEY = 'erase-attachments';
|
const ERASE_ATTACHMENTS_KEY = 'erase-attachments';
|
||||||
|
@ -181,7 +183,7 @@ function makeChannel(fnName) {
|
||||||
|
|
||||||
setTimeout(
|
setTimeout(
|
||||||
() => reject(new Error(`Request to ${fnName} timed out`)),
|
() => reject(new Error(`Request to ${fnName} timed out`)),
|
||||||
10000
|
DATABASE_UPDATE_TIMEOUT
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue