mirror of
https://github.com/m1k1o/neko.git
synced 2025-06-13 08:12:57 +02:00
set as disconnected only if not connecting.
This commit is contained in:
parent
5c8c8c1330
commit
f6edb4208e
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ export class NekoConnection extends EventEmitter<NekoConnectionEvents> {
|
|||
}
|
||||
})
|
||||
this.websocket.on('disconnected', () => {
|
||||
if (this._state.status !== 'disconnected') {
|
||||
if (this._state.status === 'connected') {
|
||||
Vue.set(this._state, 'status', 'disconnected')
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ export class NekoConnection extends EventEmitter<NekoConnectionEvents> {
|
|||
}
|
||||
})
|
||||
this.webrtc.on('disconnected', () => {
|
||||
if (this._state.status !== 'disconnected') {
|
||||
if (this._state.status === 'connected') {
|
||||
Vue.set(this._state, 'status', 'disconnected')
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue