Skip to content

Commit

Permalink
change kill zombie loop to use standard for loop
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremydaly committed Apr 24, 2019
1 parent dcf4d05 commit 09954ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 09954ac

Please sign in to comment.