mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-24 04:53:08 +02:00
Resolve #543
This commit is contained in:
parent
5df0e102fd
commit
ad67886f96
1 changed files with 4 additions and 2 deletions
|
@ -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_');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue