Skip to content

Commit

Permalink
Ensure that when new blocks are added any subscriptions to the root g…
Browse files Browse the repository at this point in the history
…et updates
  • Loading branch information
coretl committed Aug 9, 2016
1 parent bccd66c commit 29da942
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion malcolm/core/process.py
Expand Up @@ -205,7 +205,8 @@ def _handle_block_add(self, request):
assert request.name not in self._blocks, \
"There is already a block called %r" % request.name
self._blocks[request.name] = block
self._block_state_cache[request.name] = block.to_dict()
change_request = BlockChanges([[[request.name], block.to_dict()]])
self._handle_block_changes(change_request)
# Regenerate list of blocks
self.process_block["blocks"].set_value(list(self._blocks))

Expand Down

0 comments on commit 29da942

Please sign in to comment.