diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/jarvis.js | 2 |
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))}); |