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

internal/ui: data race in tray icon handling #137

Open
DeedleFake opened this issue Jul 9, 2024 · 0 comments
Open

internal/ui: data race in tray icon handling #137

DeedleFake opened this issue Jul 9, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@DeedleFake
Copy link
Owner

if a.tray == nil {
a.tray = tray.New(a.online)
}

a.tray.Update(s, a.online)

The above read and write of a.tray happen concurrently and are not synchronized. This is an extremely unlikely problem considering the way that initialization happens, but it's still technically a bug and should be fixed.

@DeedleFake DeedleFake added the bug Something isn't working label Jul 11, 2024
@DeedleFake DeedleFake changed the title internal/ui: data race in tray icon hamdling internal/ui: data race in tray icon handling Jul 12, 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