Skip to content

Commit

Permalink
avoid doing a dynamic-require on a separate thread
Browse files Browse the repository at this point in the history
as it can create race conditions with other code being loaded on the main thread

Thanks to Matthew for figuring this out

related to racket/racket#3604
  • Loading branch information
rfindler committed Jan 4, 2021
1 parent ad59c61 commit 3a07fc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drracket/drracket/private/tools.rkt
Expand Up @@ -390,7 +390,7 @@
;; add the bitmap, but centered at its position
;; (used to truncate the bitmap
;; if it was too large, but no longer)
((dynamic-require 'framework/splash 'add-splash-icon)
(add-splash-icon
bitmap
(floor (+ tool-bitmap-x
(- (/ tool-bitmap-size 2)
Expand Down

0 comments on commit 3a07fc0

Please sign in to comment.