From e8331b3d7ae58993923da5959a2aadaa8ffcb56d Mon Sep 17 00:00:00 2001
From: Matei Adriel <rafaeladriel11@gmail.com>
Date: Mon, 13 Apr 2020 16:46:10 +0300
Subject: [PATCH] fix: fixed undefined behavior after disconnecting buffers

---
 src/modules/simulation/classes/Wire.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/modules/simulation/classes/Wire.ts b/src/modules/simulation/classes/Wire.ts
index d4e0d9a..dbadc39 100644
--- a/src/modules/simulation/classes/Wire.ts
+++ b/src/modules/simulation/classes/Wire.ts
@@ -30,7 +30,7 @@ export class Wire {
     public dispose() {
         this.end.value.removePair(this.start.value)
         this.start.value.removePair(this.end.value)
-        this.end.value.state.next(false)
+        this.end.value.state.next("0")
 
         this.active = false
     }