mol_wire_lib 1.0.1542 → 1.0.1543

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.
package/web.mjs CHANGED
@@ -1484,6 +1484,12 @@ var $;
1484
1484
  $mol_wire_atom.watching.add(this);
1485
1485
  }
1486
1486
  resync(args) {
1487
+ for (let cursor = this.pub_from; cursor < this.sub_from; cursor += 2) {
1488
+ const pub = this.data[cursor];
1489
+ if (pub && pub instanceof $mol_wire_task) {
1490
+ pub.destructor();
1491
+ }
1492
+ }
1487
1493
  return this.put(this.task.call(this.host, ...args));
1488
1494
  }
1489
1495
  once() {