mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 22:58:07 +02:00
Merge pull request #8817 from mukulmishra18/intermittent-error
Set this.isCancelled in close method of streamSink.
This commit is contained in:
commit
d368a5baed
1 changed files with 1 additions and 0 deletions
|
@ -1483,6 +1483,7 @@ MessageHandler.prototype = {
|
|||
if (this.isCancelled) {
|
||||
return;
|
||||
}
|
||||
this.isCancelled = true;
|
||||
sendStreamRequest({ stream: 'close', });
|
||||
delete self.streamSinks[streamId];
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue