Skip to content

Commit

Permalink
Merge pull request #1 from liangxia/report-portal
Browse files Browse the repository at this point in the history
Kill the thread if the communication thread dies
  • Loading branch information
liangxia authored Aug 9, 2021
2 parents 75b4afa + eb1b1a2 commit f904a05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/report_portal/cucumber/formatter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def finish_message_processing

return if use_same_thread_for_reporting?

sleep 0.03 while !@queue.empty? || @queue.num_waiting.zero? # TODO: how to interrupt launch if the user aborted execution
# TODO: how to interrupt launch if the user aborted execution
sleep 0.03 while !@queue.empty? || @queue.num_waiting.zero? || @thread.join(1)
@thread.kill
end

Expand Down

0 comments on commit f904a05

Please sign in to comment.