Skip to content

Commit

Permalink
Ensure start_synchronized_datawriter_threads doesn't deadlock if stop…
Browse files Browse the repository at this point in the history
…ped before first write
  • Loading branch information
grodowski committed Dec 9, 2024
1 parent 8c817bf commit 65e0b8f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/helpers/data_writer_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ def start_synchronized_datawriter_threads
sleep(0.03)
end
ensure
@started_callback_cmd << n unless @started # if #stop_and_join is called before first write
connection.close
end

Expand Down

0 comments on commit 65e0b8f

Please sign in to comment.