mirror of
https://github.com/fluencelabs/js-libp2p-interfaces
synced 2025-04-24 23:12:23 +00:00
Pass error
This commit is contained in:
parent
37e549e3f9
commit
466c161cd4
@ -18,7 +18,7 @@ function closeAndWait (stream, callback) {
|
||||
pull(
|
||||
pull.empty(),
|
||||
stream,
|
||||
pull.onEnd(() => callback())
|
||||
pull.onEnd(callback)
|
||||
)
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user