Use CopyOnWriteArrayList to fix the concurrent issues

Signed-off-by: icebirdll <forliuli@gmail.com>