This commit is contained in:
syuilo 2018-10-11 22:35:34 +09:00
parent 184c3c3e95
commit d0efaea01f

View file

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