From d73bf6d225f6f3e607c72966a48368795a0f3b42 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Mon, 22 Jul 2019 09:21:00 -0400 Subject: [PATCH] assign new messageCallback when subbing --- src/Core/Services/BroadcasterService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Core/Services/BroadcasterService.cs b/src/Core/Services/BroadcasterService.cs index 2dec85b80..0c8613795 100644 --- a/src/Core/Services/BroadcasterService.cs +++ b/src/Core/Services/BroadcasterService.cs @@ -36,9 +36,12 @@ namespace Bit.App.Services { if(_subscribers.ContainsKey(id)) { - return; + _subscribers[id] = messageCallback; + } + else + { + _subscribers.Add(id, messageCallback); } - _subscribers.Add(id, messageCallback); } }