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 867d35e commit 065b214Copy full SHA for 065b214
src/cmap/wire_protocol/on_data.ts
@@ -90,8 +90,11 @@ export function onData(
90
// Adding event handlers
91
emitter.on('data', eventHandler);
92
emitter.on('error', errorHandler);
93
+
94
+ const timeoutForSocketRead = timeoutContext?.timeoutForSocketRead;
95
+ timeoutForSocketRead?.throwIfExpired();
96
// eslint-disable-next-line github/no-then
- timeoutContext?.timeoutForSocketRead?.then(undefined, errorHandler);
97
+ timeoutForSocketRead?.then(undefined, errorHandler);
98
99
const timeoutForSocketRead = timeoutContext?.timeoutForSocketRead;
100
timeoutForSocketRead?.throwIfExpired();
0 commit comments