aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-01-10 20:23:22 -0500
committerHolden Rohrer <hr@hrhr.dev>2020-01-10 20:23:22 -0500
commitad1ba53135b6d538ed4d96bcdc8d3c2c605cd0df (patch)
tree6ebd05ffb429c097e30fbe913db7719ce548bde6 /examples
parent51ba72aca77bc98635f267042a38e54d6093147c (diff)
cleaned jarvis
Diffstat (limited to 'examples')
-rw-r--r--examples/jarvis.js2
1 files changed, 1 insertions, 1 deletions
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))});