mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 612255 - Don't handle duplicate batches in nsPlacesDBFlush.
r+a=sdwilsh
This commit is contained in:
parent
738a37d48b
commit
495daf2b18
@ -155,6 +155,11 @@ nsPlacesDBFlush.prototype = {
|
||||
|
||||
onBeginUpdateBatch: function DBFlush_onBeginUpdateBatch()
|
||||
{
|
||||
// Since we observe both history and bookmarks, we can be notified twice
|
||||
// about a batch.
|
||||
if (this._inBatchMode)
|
||||
return;
|
||||
|
||||
this._inBatchMode = true;
|
||||
|
||||
// We do not want to sync while we are doing batch work.
|
||||
@ -164,6 +169,11 @@ nsPlacesDBFlush.prototype = {
|
||||
|
||||
onEndUpdateBatch: function DBFlush_onEndUpdateBatch()
|
||||
{
|
||||
// Since we observe both history and bookmarks, we can be notified twice
|
||||
// about a batch.
|
||||
if (!this._inBatchMode)
|
||||
return;
|
||||
|
||||
this._inBatchMode = false;
|
||||
|
||||
// Restore our timer
|
||||
|
Loading…
Reference in New Issue
Block a user