From 24e2b7c0ed9fd870c1d4042bbf37609b422890d5 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 16 Dec 2013 01:37:42 +0100 Subject: [PATCH] Fixed crash when disabling wifi. --- .../github/nutomic/controldlna/upnp/RemotePlayService.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java b/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java index 83b0937..0b43240 100644 --- a/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java +++ b/src/com/github/nutomic/controldlna/upnp/RemotePlayService.java @@ -27,9 +27,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. package com.github.nutomic.controldlna.upnp; -import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; +import java.util.concurrent.ConcurrentHashMap; import org.teleal.cling.android.AndroidUpnpService; import org.teleal.cling.android.AndroidUpnpServiceImpl; @@ -92,7 +92,8 @@ public class RemotePlayService extends Service implements RegistryListener { private Messenger mListener; - private HashMap> mDevices = new HashMap>(); + private ConcurrentHashMap> mDevices = + new ConcurrentHashMap>(); private Device mCurrentRenderer;