summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2023-01-14 22:02:31 +0000
committerJune McEnroe <june@causal.agency>2023-01-14 22:02:31 +0000
commit0eff4949082c3ebb4479070091587f53f83bfa01 (patch)
treef4511673b422890bc4742bbacf8e594e2607142d
parentSend Discord replies to Minecraft (diff)
downloadshulker-0eff4949082c3ebb4479070091587f53f83bfa01.tar.gz
shulker-0eff4949082c3ebb4479070091587f53f83bfa01.zip
Clean up rcon package callbacks
Diffstat (limited to '')
-rw-r--r--src/Rcon.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Rcon.ts b/src/Rcon.ts
index fc3b989..fb272d3 100644
--- a/src/Rcon.ts
+++ b/src/Rcon.ts
@@ -39,6 +39,7 @@ class Rcon {
 
       if (this.packages[id]) {
         this.packages[id](type, response)
+		delete this.packages[id]
       } else {
         console.log('Unexpected rcon response', id, type, response)
       }