Skip to content

Commit 90dec0a

Browse files
committed
Check for Ractor constant
TruffleRuby support
1 parent c7a24ba commit 90dec0a

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

188188
if block_given?
189189
begin

0 commit comments

Comments
 (0)