Skip to content

Commit 9231431

Browse files
tenderloveflavorjones
authored andcommitted
not all versions of Ruby have Ractor.main?
1 parent 3840233 commit 9231431

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
@@ -181,7 +181,7 @@ def initialize file, options = {}, zvfs = nil
181181

182182
initialize_extensions(options[:extensions])
183183

184-
ForkSafety.track(self) if Ractor.main?
184+
ForkSafety.track(self) if Ractor.main == Ractor.current
185185

186186
if block_given?
187187
begin

0 commit comments

Comments
 (0)