Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在签到结束之后,构建推送消息偶尔会漏掉cookie或报空指针错误 #33

Closed
anduinnn opened this issue Apr 7, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@anduinnn
Copy link
Owner

anduinnn commented Apr 7, 2024

No description provided.

@anduinnn anduinnn added the bug Something isn't working label Apr 7, 2024
@anduinnn anduinnn self-assigned this Apr 8, 2024
@anduinnn anduinnn pinned this issue Apr 8, 2024
@anduinnn
Copy link
Owner Author

anduinnn commented Apr 8, 2024

在项目里使用了
java List<CookieSignResult> results = new ArrayList<>();
构建推送的消息,但是 ArrayList是线程不安全的,所以在多cookie的时候会出现漏掉一些信息,或者报错;
在这里改为线程安全的List来解决
List<CookieSignResult> results = Collections.synchronizedList(new ArrayList<>());

@anduinnn anduinnn closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant