fix connection close logic
This commit is contained in:
parent
1d17516aa8
commit
091ef2e240
3 changed files with 6 additions and 4 deletions
|
|
@ -255,8 +255,7 @@ export default class Stream extends EventEmitter<StreamEvents> {
|
|||
*/
|
||||
@autobind
|
||||
public close() {
|
||||
this.stream.removeEventListener('open', this.onOpen);
|
||||
this.stream.removeEventListener('message', this.onMessage);
|
||||
this.stream.close();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue