Skip to content

Commit

Permalink
[registry] fix bug introduced by previous bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
redsolver committed Sep 1, 2023
1 parent 08c4bda commit 0d2bf39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/service/registry.dart
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,9 @@ class RegistryService {
} else {
sendRegistryRequest(pk);
subs.add(key);
streams[key] = StreamController<SignedRegistryEntry>.broadcast();
if (!streams.containsKey(key)) {
streams[key] = StreamController<SignedRegistryEntry>.broadcast();
}
if (getFromDB(pk) == null) {
node.logger.verbose('[registry] get (clean) $key');
for (int i = 0; i < 200; i++) {
Expand Down

0 comments on commit 0d2bf39

Please sign in to comment.