Sfoglia il codice sorgente

Ignore occasional error from Ruby 1.8.7

Related: https://bugs.ruby-lang.org/issues/1471
Junegunn Choi 11 anni fa
parent
commit
c3cf35abb5
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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