mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-12-02 06:37:57 -07:00
Resolve #543
This commit is contained in:
parent
184c3c3e95
commit
d0efaea01f
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue