mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
remove initialization on ws reconnection
This commit is contained in:
parent
3034776593
commit
8bf2c3b332
@ -194,8 +194,6 @@ class App extends React.Component {
|
|||||||
this.wsReconnectingTry = 0
|
this.wsReconnectingTry = 0
|
||||||
this.wsReconnecting = false
|
this.wsReconnecting = false
|
||||||
|
|
||||||
this.initialization()
|
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
Toast.show({
|
Toast.show({
|
||||||
icon: "success",
|
icon: "success",
|
||||||
@ -206,7 +204,6 @@ class App extends React.Component {
|
|||||||
},
|
},
|
||||||
"api.ws.main.connect_error": () => {
|
"api.ws.main.connect_error": () => {
|
||||||
if (!this.wsReconnecting) {
|
if (!this.wsReconnecting) {
|
||||||
this.latencyWarning = null
|
|
||||||
this.wsReconnectingTry = 0
|
this.wsReconnectingTry = 0
|
||||||
this.wsReconnecting = true
|
this.wsReconnecting = true
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user