antietcd 1.0.4 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/etctree.js +5 -0
  2. package/package.json +1 -1
package/etctree.js CHANGED
@@ -446,6 +446,11 @@ class EtcTree
446
446
  {
447
447
  this._delete_range({ key: this.use_base64 ? this.b64(key) : key }, next_revision, notifications);
448
448
  }
449
+ if (this.leases[id].timer_id)
450
+ {
451
+ clearTimeout(this.leases[id].timer_id);
452
+ this.leases[id].timer_id = null;
453
+ }
449
454
  delete this.leases[id];
450
455
  }
451
456
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "antietcd",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Simplistic etcd replacement based on TinyRaft",
5
5
  "main": "antietcd.js",
6
6
  "scripts": {