Closed bombitmanbomb closed 3 years ago
None of this will be freed by the garbage collector either as it's still "In Use".
None of this will be freed by the garbage collector either as it's still "In Use".
Thank you for pointing it out, will fix it asap 💯
This has been fixed in this PR https://github.com/11TStudio/SquadStatsJSPRO/commit/686b4d27fc6e1922a87fe6fb58d27628c1f353e9
As you mentioned from PM I will later today make this pormise based.
https://github.com/11TStudio/SquadStatsJSPRO/blob/7c4f7de4afa53efe229fc48b9d88d01409a48427/commands/Squad/profile.js#L110
Noticed after opening #9. Bot is opening a new sql connection for every command when using sql. These connections are never disposed of, and will remain open for 8+ hours. The bot will eventually run to a screeching halt.
You're code is doing the latter, Creating a new connection every time, and Never disposing. mysql connections can remain suspended for 8 hours by default.