Skip to content
Snippets Groups Projects
Commit 586282c9 authored by Jesse Wright's avatar Jesse Wright
Browse files

safe timeout

parent 7933d458
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ export const writeUB = async (conn: Socket, d: any) => {
if (diff > 0) {
await sleep(diff)
}
sendDelay = performance.now() + 50
sendDelay = performance.now() + 100
return new Promise((res, rej) => {
conn.write(d, (err) => {
conn.emit("drain");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment