Skip to content

Commit

Permalink
chore: wait for a bit more time for storage to persist to disc in cas…
Browse files Browse the repository at this point in the history
…e processor too busy
  • Loading branch information
abose committed Dec 26, 2023
1 parent 11d5775 commit ad3b5be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/document/DocumentCommandHandlers.js
Original file line number Diff line number Diff line change
Expand Up @@ -1803,7 +1803,7 @@ define(function (require, exports, module) {
window.setTimeout(function () {
raceAgainstTime(window.PhStore.flushDB()) // wither wait for flush or time this out
.finally(()=>{
raceAgainstTime(NodeConnector.terminateNode(), 5000)
raceAgainstTime(NodeConnector.terminateNode(), 8000)
.finally(()=>{
window.location.href = href;
});
Expand Down Expand Up @@ -1917,7 +1917,7 @@ define(function (require, exports, module) {
event.preventDefault();
_handleWindowGoingAway(null, closeSuccess=>{
console.log('close success: ', closeSuccess);
raceAgainstTime(window.PhStore.flushDB())
raceAgainstTime(window.PhStore.flushDB(), 8000)
.finally(()=>{
raceAgainstTime(NodeConnector.terminateNode())
.finally(()=>{
Expand Down

0 comments on commit ad3b5be

Please sign in to comment.