File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -81,20 +81,12 @@ async function connectH2 (client, socket) {
81
81
82
82
client [ kSocket ] = null
83
83
84
- if ( client . destroyed ) {
85
- assert ( client [ kPending ] === 0 )
86
-
87
- // Fail entire queue.
88
- const requests = client [ kQueue ] . splice ( client [ kRunningIdx ] )
89
- for ( let i = 0 ; i < requests . length ; i ++ ) {
90
- const request = requests [ i ]
91
- errorRequest ( client , request , err )
92
- }
93
- } else if ( client [ kRunning ] > 0 && err . code !== 'UND_ERR_INFO' ) {
94
- // Fail head of pipeline.
95
- const request = client [ kQueue ] [ client [ kRunningIdx ] ]
96
- client [ kQueue ] [ client [ kRunningIdx ] ++ ] = null
84
+ assert ( client [ kPending ] === 0 )
97
85
86
+ // Fail entire queue.
87
+ const requests = client [ kQueue ] . splice ( client [ kRunningIdx ] )
88
+ for ( let i = 0 ; i < requests . length ; i ++ ) {
89
+ const request = requests [ i ]
98
90
errorRequest ( client , request , err )
99
91
}
100
92
You can’t perform that action at this time.
0 commit comments