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 212ec5c commit e7f8807Copy full SHA for e7f8807
packages/utils/src/stream-utils.ts
@@ -96,7 +96,7 @@ function isMultiaddrConnection (obj?: any): obj is MultiaddrConnection {
96
97
function isEOF (obj?: any): boolean {
98
if (isStream(obj)) {
99
- return obj.remoteWriteStatus !== 'writable'
+ return obj.readStatus === 'closing' || obj.readStatus === 'closed' || obj.remoteWriteStatus !== 'writable'
100
}
101
102
if (isMultiaddrConnection(obj)) {
0 commit comments