diff --git a/src/org/kde/kdeconnect/Plugins/SystemvolumePlugin/SystemvolumePlugin.java b/src/org/kde/kdeconnect/Plugins/SystemvolumePlugin/SystemvolumePlugin.java index 01b81b22..0517dd73 100644 --- a/src/org/kde/kdeconnect/Plugins/SystemvolumePlugin/SystemvolumePlugin.java +++ b/src/org/kde/kdeconnect/Plugins/SystemvolumePlugin/SystemvolumePlugin.java @@ -30,7 +30,7 @@ import org.kde.kdeconnect_tp.R; import java.util.ArrayList; import java.util.Collection; -import java.util.HashMap; +import java.util.concurrent.ConcurrentHashMap; @PluginFactory.LoadablePlugin public class SystemvolumePlugin extends Plugin { @@ -42,11 +42,11 @@ public class SystemvolumePlugin extends Plugin { void sinksChanged(); } - private final HashMap sinks; + private final ConcurrentHashMap sinks; private final ArrayList listeners; public SystemvolumePlugin() { - sinks = new HashMap<>(); + sinks = new ConcurrentHashMap<>(); listeners = new ArrayList<>(); }