fix: fixed undefined behavior after disconnecting buffers

This commit is contained in:
Matei Adriel 2020-04-13 16:46:10 +03:00
parent 1a898dc926
commit e8331b3d7a

View file

@ -30,7 +30,7 @@ export class Wire {
public dispose() { public dispose() {
this.end.value.removePair(this.start.value) this.end.value.removePair(this.start.value)
this.start.value.removePair(this.end.value) this.start.value.removePair(this.end.value)
this.end.value.state.next(false) this.end.value.state.next("0")
this.active = false this.active = false
} }