Skip to content

Commit

Permalink
chat: smoother redirection (fixes #7472) (#7473)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
Mutugiii and dogi committed Jun 3, 2024
1 parent 6a55fc8 commit 6ab8dcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "planet",
"license": "AGPL-3.0",
"version": "0.14.38",
"version": "0.14.39",
"myplanet": {
"latest": "v0.15.54",
"min": "v0.14.54"
"latest": "v0.15.60",
"min": "v0.14.60"
},
"scripts": {
"ng": "ng",
Expand Down
2 changes: 1 addition & 1 deletion src/app/shared/chat.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ import { CouchService } from '../shared/couchdb.service';

// Function to close ws connection
closeWebSocket(): void {
if (this.socket.readyState === WebSocket.OPEN) {
if (this.socket && this.socket.readyState === WebSocket.OPEN) {
this.socket.close();
}
}
Expand Down

0 comments on commit 6ab8dcc

Please sign in to comment.