This commit is contained in:
syuilo 2018-10-11 22:35:34 +09:00
parent 5df0e102fd
commit ad67886f96
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -89,8 +89,10 @@ export default class Stream extends EventEmitter {
*/ */
@autobind @autobind
private onClose() { private onClose() {
this.state = 'reconnecting'; if (this.state == 'connected') {
this.emit('_disconnected_'); this.state = 'reconnecting';
this.emit('_disconnected_');
}
} }
/** /**