File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ def wait(timeout = nil)
88
88
@latch . await
89
89
true
90
90
else
91
- @latch . await ( timeout , java . util . concurrent . TimeUnit ::SECONDS )
91
+ @latch . await ( 1000 * timeout , java . util . concurrent . TimeUnit ::MILLISECONDS )
92
92
end
93
93
end
94
94
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ def shutdown?
191
191
#
192
192
# @return [Boolean] `true` if shutdown complete or false on `timeout`
193
193
def wait_for_termination ( timeout )
194
- @executor . awaitTermination ( timeout . to_i , java . util . concurrent . TimeUnit ::SECONDS )
194
+ @executor . awaitTermination ( 1000 * timeout , java . util . concurrent . TimeUnit ::MILLISECONDS )
195
195
end
196
196
197
197
# Begin an orderly shutdown. Tasks already in the queue will be executed,
You can’t perform that action at this time.
0 commit comments