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
1 changed files with 4 additions and 2 deletions

View File

@ -89,9 +89,11 @@ export default class Stream extends EventEmitter {
*/ */
@autobind @autobind
private onClose() { private onClose() {
if (this.state == 'connected') {
this.state = 'reconnecting'; this.state = 'reconnecting';
this.emit('_disconnected_'); this.emit('_disconnected_');
} }
}
/** /**
* Callback of when received a message from connection * Callback of when received a message from connection