Skip to content

Commit c7a24ba

Browse files
committed
not all versions of Ruby have Ractor.main?
1 parent 9e64a7a commit c7a24ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sqlite3/database.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def initialize file, options = {}, zvfs = nil
183183

184184
initialize_extensions(options[:extensions])
185185

186-
ForkSafety.track(self) if Ractor.main?
186+
ForkSafety.track(self) if Ractor.main == Ractor.current
187187

188188
if block_given?
189189
begin

0 commit comments

Comments
 (0)