Skip to content

Commit

Permalink
fix: don't override user defined MaxListeners
Browse files Browse the repository at this point in the history
  • Loading branch information
fawazahmed0 authored Jun 25, 2024
1 parent 951826c commit ef3ac6a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/web/fetch/request.js
Original file line number Diff line number Diff line change
Expand Up @@ -429,8 +429,6 @@ class Request {
// This is only available in node >= v19.9.0
if (typeof getMaxListeners === 'function' && getMaxListeners(signal) === defaultMaxListeners) {
setMaxListeners(1500, signal)
} else if (getEventListeners(signal, 'abort').length >= defaultMaxListeners) {
setMaxListeners(1500, signal)
}
} catch {}

Expand Down

0 comments on commit ef3ac6a

Please sign in to comment.