Skip to content

Commit 041b54d

Browse files
tenderloveflavorjones
authored andcommitted
Check for Ractor constant
TruffleRuby support
1 parent 289515c commit 041b54d

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 == Ractor.current
184+
ForkSafety.track(self) if !defined?(Ractor) || (Ractor.main == Ractor.current)
185185

186186
if block_given?
187187
begin

0 commit comments

Comments
 (0)