Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Concurrency issue by using CopyOnWriteArrayList for observers
Replaces the observers ArrayList with CopyOnWriteArrayList in ProductImageMap to prevent ConcurrentModificationException during concurrent access. This change ensures thread-safe modifications and iterations over the observer list, improving the stability of the product image fetching mechanism.
- Loading branch information