fix: remove mutex and don't make cb async to prevent race condition

This commit is contained in:
Derrick Hammer 2023-07-21 21:35:47 -04:00
parent aa3153e4f8
commit 04c7292e44
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 2 deletions

View File

@ -165,8 +165,7 @@ function handleSocketListenEvent(aq: ActiveQuery) {
aq.respond();
};
const cb = async (data: Buffer) => {
await socket.mutex?.waitForUnlock();
const cb = (data: Buffer) => {
if (responded) {
return;
}