Skip to content

Commit 8526a79

Browse files
committed
need to start thread
1 parent 1db3703 commit 8526a79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jruby_art/helper_methods.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def p52ruby(p5color)
7474
# Overrides Processing convenience function thread, which takes a String
7575
# arg (for a function) to more rubylike version, takes a block...
7676
def thread(&block)
77-
warn 'A Block is Needed' if block_given?
78-
Java::JavaLang::Thread.new(&block).new
77+
warn 'A Block is Needed' unless block_given?
78+
Java::JavaLang::Thread.new(&block).start
7979
end
8080

8181
# explicitly provide 'processing.org' min instance method

0 commit comments

Comments
 (0)