Skip to content

fix(lifecycle): TokenRefreshService Stop() 防重复 close#1377

Merged
Wei-Shaw merged 1 commit intoWei-Shaw:mainfrom
DaydreamCoding:fix/lifecycle-stop-duplicate-close
Mar 30, 2026
Merged

fix(lifecycle): TokenRefreshService Stop() 防重复 close#1377
Wei-Shaw merged 1 commit intoWei-Shaw:mainfrom
DaydreamCoding:fix/lifecycle-stop-duplicate-close

Conversation

@DaydreamCoding
Copy link
Copy Markdown

使用 sync.Once 包裹 close(stopCh),避免多次调用 Stop() 时
触发 panic: close of closed channel。

使用 sync.Once 包裹 close(stopCh),避免多次调用 Stop() 时
触发 panic: close of closed channel。
@Wei-Shaw Wei-Shaw merged commit b5642bd into Wei-Shaw:main Mar 30, 2026
4 checks passed
@DaydreamCoding DaydreamCoding deleted the fix/lifecycle-stop-duplicate-close branch March 30, 2026 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants