fix websocket connection state observable

This commit is contained in:
Mononaut
2023-07-29 15:16:28 +09:00
parent b1bdb52851
commit 354c119e99
2 changed files with 15 additions and 7 deletions

View File

@@ -113,7 +113,7 @@ export class WebsocketService {
this.stateService.connectionState$.next(2);
}
if (this.stateService.connectionState$.value === 1) {
if (this.stateService.connectionState$.value !== 2) {
this.stateService.connectionState$.next(2);
}