No requestIdleCallback in Node

This commit is contained in:
Mikko Ahlroth 2024-07-18 01:31:37 +03:00
parent b466a6b2a2
commit 938a3db094

View file

@ -149,7 +149,7 @@ class Connection {
);
if (this.msgBuffer.length > 0) {
requestIdleCallback(() => {
setImmediate(() => {
this.send();
});
}
@ -224,7 +224,7 @@ class Connection {
this.reachabilityTimeout = null;
if (this.msgBuffer.length > 0) {
requestIdleCallback(() => {
setImmediate(() => {
this.send();
});
}