Update useConnection.ts
This commit is contained in:
parent
b5762d53fd
commit
b4ae1327b5
1 changed files with 0 additions and 6 deletions
|
|
@ -225,12 +225,6 @@ export function useConnection({
|
||||||
if (shouldRetry) {
|
if (shouldRetry) {
|
||||||
return connect(undefined, retryCount + 1);
|
return connect(undefined, retryCount + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (error instanceof SseError && error.code === 401) {
|
|
||||||
// Don't set error state if we're about to redirect for auth
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
setConnectionStatus("error");
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue