From ad1ba53135b6d538ed4d96bcdc8d3c2c605cd0df Mon Sep 17 00:00:00 2001
From: Holden Rohrer
Date: Fri, 10 Jan 2020 20:23:22 -0500
Subject: cleaned jarvis
---
examples/jarvis.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'examples')
diff --git a/examples/jarvis.js b/examples/jarvis.js
index 93061d7..52b135f 100644
--- a/examples/jarvis.js
+++ b/examples/jarvis.js
@@ -150,7 +150,7 @@ function detectPrompt(send, tiles, locs){ // tries to detect the prompt ('jarvis
}
let results = read.add(loc, tiles[loc]);
if (results.length > 0) respond(results);
- expire[loc] = setTimeout(() => {read.del(loc)}, 30000);
+ expire[loc] = setTimeout(() => {read.del(loc); delete expire[loc];}, 30000);
}
limits.push(send);
setTimeout(() => {limits.splice(limits.indexOf(send))});
--
cgit