Skip to content
Permalink
Browse files

change kill zombie loop to use standard for loop

  • Loading branch information...
jeremydaly committed Apr 24, 2019
1 parent dcf4d05 commit 09954ac457bdbc0bb19a9e8dd9ed230116a8375a
Showing with 1 addition and 1 deletion.
  1. +1 −1 index.js
@@ -270,7 +270,7 @@ const killZombieConnections = async (timeout) => {
[!isNaN(timeout) ? timeout : 60*15, _cfg.user])

// Kill zombies
for (let i in zombies) {
for (let i = 0; i < zombies.length; i++) {
try {
await query('KILL ?',zombies[i].ID)
onKill(zombies[i]) // fire onKill event

0 comments on commit 09954ac

Please sign in to comment.
You can’t perform that action at this time.