mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 902280 - Update _lastSaveTime before writing to avoid deceeding the write interval. r=ttaubert
This commit is contained in:
parent
164140298f
commit
e8dd467447
@ -262,6 +262,12 @@ let SessionSaverInternal = {
|
||||
return;
|
||||
}
|
||||
|
||||
// We update the time stamp before writing so that we don't write again
|
||||
// too soon, if saving is requested before the write completes. Without
|
||||
// this update we may save repeatedly if actions cause a runDelayed
|
||||
// before writing has completed. See Bug 902280
|
||||
this.updateLastSaveTime();
|
||||
|
||||
// Write (atomically) to a session file, using a tmp file. Once the session
|
||||
// file is successfully updated, save the time stamp of the last save and
|
||||
// notify the observers.
|
||||
|
Loading…
Reference in New Issue
Block a user