Skip to content

Commit

Permalink
Correctly copy dependecing during fork
Browse files Browse the repository at this point in the history
This causes a bug where drops would happen on the main path during unwinds.
  • Loading branch information
apmasell committed Jul 26, 2023
1 parent 976a34b commit 3cbd0fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dispyatcher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ def fork(self) -> "FlowState":
:return: the new flow state that will share the same global addresses and builder as this one
"""
return FlowState(self.__builder, self.__dependencies, self.__global_addresses, self.__library_dependencies)
return FlowState(self.__builder, {**self.__dependencies}, self.__global_addresses, self.__library_dependencies)

def pluck(self, lifetime: int) -> None:
"""
Expand Down

0 comments on commit 3cbd0fe

Please sign in to comment.