Skip to content

Commit ba8e97e

Browse files
committed
actor termination should return just true not [true]
1 parent a238b02 commit ba8e97e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/concurrent/actor/behaviour/termination.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ def terminate!(reason = nil, envelope = nil)
7070
end
7171

7272
all_terminations.chain_resolvable(@terminated)
73-
all_terminations.chain_resolvable(envelope.future) if envelope && envelope.future
73+
if envelope && envelope.future
74+
all_terminations.chain { |fulfilled, _, reason| envelope.future.resolve fulfilled, true, reason }
75+
end
7476

7577
broadcast(true, [:terminated, reason]) # TODO do not end up in Dead Letter Router
7678
parent << :remove_child if parent

0 commit comments

Comments
 (0)