Frontend: Stream再接続ロジックdata raceを修正
Some checks failed
Lint / pnpm_install (push) Successful in 1m38s
Test (production install and build) / production (22.11.0) (push) Successful in 1m46s
Lint / lint (backend) (push) Successful in 2m13s
Lint / lint (frontend) (push) Successful in 2m19s
Publish Docker image / Build (push) Successful in 5m14s
Lint / lint (frontend-embed) (push) Successful in 2m23s
Lint / lint (frontend-shared) (push) Successful in 2m42s
Lint / lint (misskey-bubble-game) (push) Successful in 2m30s
Lint / lint (sw) (push) Failing after 1m21s
Lint / lint (misskey-js) (push) Successful in 2m23s
Lint / typecheck (backend) (push) Failing after 54s
Lint / typecheck (sw) (push) Successful in 2m5s
Lint / typecheck (misskey-js) (push) Failing after 12m52s
Lint / lint (misskey-reversi) (push) Failing after 14m42s
Some checks failed
Lint / pnpm_install (push) Successful in 1m38s
Test (production install and build) / production (22.11.0) (push) Successful in 1m46s
Lint / lint (backend) (push) Successful in 2m13s
Lint / lint (frontend) (push) Successful in 2m19s
Publish Docker image / Build (push) Successful in 5m14s
Lint / lint (frontend-embed) (push) Successful in 2m23s
Lint / lint (frontend-shared) (push) Successful in 2m42s
Lint / lint (misskey-bubble-game) (push) Successful in 2m30s
Lint / lint (sw) (push) Failing after 1m21s
Lint / lint (misskey-js) (push) Successful in 2m23s
Lint / typecheck (backend) (push) Failing after 54s
Lint / typecheck (sw) (push) Successful in 2m5s
Lint / typecheck (misskey-js) (push) Failing after 12m52s
Lint / lint (misskey-reversi) (push) Failing after 14m42s
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
18d5587e5c
commit
0ac3544a5c
2 changed files with 4 additions and 5 deletions
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
- Upstream: 2024.11.0-alpha.1 タッグをマージする
|
- Upstream: 2024.11.0-alpha.1 タッグをマージする
|
||||||
- DevOps: 管理者アクセストークンがユーザー登録できるようになる (write:admin:create-account)
|
- DevOps: 管理者アクセストークンがユーザー登録できるようになる (write:admin:create-account)
|
||||||
|
- Frontend: Stream再接続ロジックdata raceを修正
|
||||||
- Security: CSPにCDNなどの外部ホストはホワイトリストできるように
|
- Security: CSPにCDNなどの外部ホストはホワイトリストできるように
|
||||||
|
|
||||||
## 2024.11.0-yumechinokuni.3
|
## 2024.11.0-yumechinokuni.3
|
||||||
|
|
|
@ -38,11 +38,9 @@ function createStream(): Misskey.IStream {
|
||||||
console.log('Stream disconnected, attempting to reconnect...');
|
console.log('Stream disconnected, attempting to reconnect...');
|
||||||
if (reconnectAttempts < RECONNECT_MAX_ATTEMPTS) {
|
if (reconnectAttempts < RECONNECT_MAX_ATTEMPTS) {
|
||||||
const delay = getReconnectDelay();
|
const delay = getReconnectDelay();
|
||||||
reconnectTimeout = window.setTimeout(() => {
|
reconnectAttempts++;
|
||||||
reconnectAttempts++;
|
stream = null;
|
||||||
stream = null;
|
reconnectTimeout = window.setTimeout(useStream, delay);
|
||||||
useStream();
|
|
||||||
}, delay);
|
|
||||||
} else {
|
} else {
|
||||||
console.error('Max reconnection attempts reached');
|
console.error('Max reconnection attempts reached');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue