Skip to content

Commit f8f7da7

Browse files
committed
Internal network code cleanup
1 parent b0770ef commit f8f7da7

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

lib/thin/sqlnet/ntTcp.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -352,13 +352,7 @@ class NTTCP {
352352
async pauseWrite() {
353353
this.checkErr();
354354
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-
});
355+
await new Promise((resolve) => this.stream.once('drain', resolve));
362356
this.checkErr();
363357
} else {
364358
await new Promise((resolve) => Timers.setImmediate(resolve));

0 commit comments

Comments
 (0)