mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Move debug message inside if statement so that it only triggers when we try to reconnect
This commit is contained in:
parent
f83343592b
commit
151f9e79ed
@ -31,9 +31,9 @@ export default function useWebsocket(subscribeGroups) {
|
||||
};
|
||||
|
||||
ws.current.onclose = e => {
|
||||
// eslint-disable-next-line no-console
|
||||
console.debug('Socket closed. Reconnecting...', e);
|
||||
if (e.code !== 1000) {
|
||||
// eslint-disable-next-line no-console
|
||||
console.debug('Socket closed. Reconnecting...', e);
|
||||
setTimeout(() => {
|
||||
connect();
|
||||
}, 1000);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user