mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-03 19:43:04 +08:00
fix observable disposable
This commit is contained in:
parent
5ac3fe9ea8
commit
f1491fa4cc
1 changed files with 2 additions and 2 deletions
|
@ -47,8 +47,8 @@ module.exports = {
|
|||
|
||||
const outputStream = stream.Readable();
|
||||
outputStream._read = () => { return };
|
||||
source.subscribe((str) => outputStream.push(str))
|
||||
request.on("disconnect", () => source.dispose());
|
||||
const disposable = source.subscribe((str) => outputStream.push(str))
|
||||
request.on("disconnect", () => disposable.dispose());
|
||||
|
||||
return outputStream;
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue