Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
jibon57 committed May 26, 2023
1 parent 601b6d3 commit 35cf457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/websocket/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ export const openWebsocketConnection = () => {
export const isSocketConnected = () => isConnected;

export const sendWebsocketMessage = (msg: any) => {
if (!isFirstTime && !isConnected) {
if (!isFirstTime && !isConnected && !normallyClosed) {
toast(i18n.t('notifications.websocket-not-connected'), {
type: 'error',
toastId: 'websocket-notify',
Expand Down

0 comments on commit 35cf457

Please sign in to comment.