We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0770ef commit f8f7da7Copy full SHA for f8f7da7
lib/thin/sqlnet/ntTcp.js
@@ -352,13 +352,7 @@ class NTTCP {
352
async pauseWrite() {
353
this.checkErr();
354
if (this.needsDrain) {
355
- await new Promise((resolve) => {
356
- this.waiter = resolve;
357
- this.stream.once('drain', () => {
358
- resolve();
359
- this.waiter = null;
360
- });
361
+ await new Promise((resolve) => this.stream.once('drain', resolve));
362
363
} else {
364
await new Promise((resolve) => Timers.setImmediate(resolve));
0 commit comments