Skip to content

Commit 0d2bf39

Browse files
committed
[registry] fix bug introduced by previous bug fix
1 parent 08c4bda commit 0d2bf39

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/service/registry.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ class RegistryService {
126126
} else {
127127
sendRegistryRequest(pk);
128128
subs.add(key);
129-
streams[key] = StreamController<SignedRegistryEntry>.broadcast();
129+
if (!streams.containsKey(key)) {
130+
streams[key] = StreamController<SignedRegistryEntry>.broadcast();
131+
}
130132
if (getFromDB(pk) == null) {
131133
node.logger.verbose('[registry] get (clean) $key');
132134
for (int i = 0; i < 200; i++) {

0 commit comments

Comments
 (0)