mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
fix: resolve random crashes, memory leaks, and thread explosion
This commit is contained in:
1 parent
c330a7b605
commit
d23c8e51a4
5 files changed
+163
-31
No files matched your search
@@ -206,7 +206,12 @@ export async function run(msg) {
|
||||
lastState = extra;
|
||||
};
|
||||
|
||||
let _sessionClosed = false;
|
||||
|
||||
const closeSession = async (reason = "timeout") => {
|
||||
if (_sessionClosed) return;
|
||||
_sessionClosed = true;
|
||||
|
||||
clearTimeout(sessionTimeout);
|
||||
clearTimeout(emojiRemoveTimeout);
|
||||
clearInterval(updateInterval);
|
||||
|
||||
Reference in new issue
Block a user