trayscale icon indicating copy to clipboard operation
trayscale copied to clipboard

internal/ui: data race in tray icon handling

Open DeedleFake opened this issue 7 months ago • 0 comments

https://github.com/DeedleFake/trayscale/blob/764e58c0d56fbb287a9b3835d44a7ade759c8bc8/internal/ui/app.go#L350-L352

https://github.com/DeedleFake/trayscale/blob/764e58c0d56fbb287a9b3835d44a7ade759c8bc8/internal/ui/app.go#L182

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 avatar Jul 09 '24 18:07 DeedleFake