Skip to content

Commit

Permalink
fix: network handlers close
Browse files Browse the repository at this point in the history
  • Loading branch information
0xpatrickdev committed Aug 12, 2024
1 parent df0f7af commit e1fcfae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/network/src/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ const prepareHalfConnection = (zone, { watch, allVows, finalizer }) => {
return watch(innerVow, this.facets.rethrowUnlessMissingWatcher);
},
async close() {
const { closed, current, conns, l, r } = this.state;
const { closed, current, conns, l, r, handlers } = this.state;
if (closed) {
throw Error(closed);
}
Expand All @@ -147,8 +147,8 @@ const prepareHalfConnection = (zone, { watch, allVows, finalizer }) => {
const innerVow = watch(
allVows([
finalizer.finalize(conns.get(l)),
finalizer.finalize(conns.get(r)),
// E(handlers[r]).onClose(conns.get(r), undefined, handlers[r]),
// finalizer.finalize(conns.get(r)),
E(handlers[r]).onClose(conns.get(r), undefined, handlers[r]),
]),
this.facets.sinkWatcher,
);
Expand Down

0 comments on commit e1fcfae

Please sign in to comment.