Skip to content

Commit b9af7b4

Browse files
committed
make really fast timeout
1 parent f86d0d1 commit b9af7b4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/libreconv.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def convert
3232
Dir.mktmpdir { |target_path|
3333
pid = Spoon.spawnp(@soffice_command, "--headless", "--convert-to", @convert_to, @source, "--outdir", target_path)
3434
begin
35-
Timeout.timeout(5) do
35+
Timeout.timeout(1) do
3636
Process.wait pid
3737
$stdout.reopen orig_stdout
3838
target_tmp_file = "#{target_path}/#{File.basename(@source, ".*")}.#{File.basename(@convert_to, ":*")}"

0 commit comments

Comments
 (0)