Fix web socket reconnect on web socket close (#242)

This commit is contained in:
quthla 2019-11-28 20:01:23 +01:00 committed by Jannis Mattheis
parent 9715ecaeb1
commit dc741493b4
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ export class WebSocketStore {
.tryAuthenticate() .tryAuthenticate()
.then(() => { .then(() => {
this.snack('WebSocket connection closed, trying again in 30 seconds.'); this.snack('WebSocket connection closed, trying again in 30 seconds.');
setTimeout(this.listen, 30000); setTimeout(() => this.listen(callback), 30000);
}) })
.catch((error: AxiosError) => { .catch((error: AxiosError) => {
if (error && error.response && error.response.status === 401) { if (error && error.response && error.response.status === 401) {