Преглед изворни кода

Ignore occasional error from Ruby 1.8.7

Related: https://bugs.ruby-lang.org/issues/1471
Junegunn Choi пре 11 година
родитељ
комит
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