fix: remove mutex and don't make cb async to prevent race condition
This commit is contained in:
parent
aa3153e4f8
commit
04c7292e44
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue