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();
|
aq.respond();
|
||||||
};
|
};
|
||||||
|
|
||||||
const cb = async (data: Buffer) => {
|
const cb = (data: Buffer) => {
|
||||||
await socket.mutex?.waitForUnlock();
|
|
||||||
if (responded) {
|
if (responded) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue