Просмотр исходного кода

Ignore occasional error from Ruby 1.8.7

Related: https://bugs.ruby-lang.org/issues/1471
Junegunn Choi 11 лет назад
Родитель
Сommit
c3cf35abb5
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      plug.vim

+ 1 - 1
plug.vim

@@ -717,7 +717,7 @@ function! s:update_parallel(pull, todo, threads)
         } if running
       end
     end
-    threads.each { |t| t.join }
+    threads.each { |t| t.join rescue nil }
     mtx.synchronize { threads.clear }
     all.merge!(VIM::evaluate("s:extend(#{names.inspect})") || {})
     logh.call