Browse Source

Revert to setTimeout

Steven Silvester 8 years ago
parent
commit
a4119b1960
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/docmanager/savehandler.ts

+ 1 - 1
src/docmanager/savehandler.ts

@@ -106,7 +106,7 @@ class SaveHandler implements IDisposable {
     if (!this._isActive) {
     if (!this._isActive) {
       return;
       return;
     }
     }
-    this._autosaveTimer = setInterval(() => {
+    this._autosaveTimer = setTimeout(() => {
       this._save();
       this._save();
     }, this._interval);
     }, this._interval);
   }
   }