Skip to content

Commit e7f8807

Browse files
committed
chore: fix
1 parent 212ec5c commit e7f8807

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/utils/src/stream-utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ function isMultiaddrConnection (obj?: any): obj is MultiaddrConnection {
9696

9797
function isEOF (obj?: any): boolean {
9898
if (isStream(obj)) {
99-
return obj.remoteWriteStatus !== 'writable'
99+
return obj.readStatus === 'closing' || obj.readStatus === 'closed' || obj.remoteWriteStatus !== 'writable'
100100
}
101101

102102
if (isMultiaddrConnection(obj)) {

0 commit comments

Comments
 (0)