aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lua/mason-core/async/init.lua9
1 files changed, 3 insertions, 6 deletions
diff --git a/lua/mason-core/async/init.lua b/lua/mason-core/async/init.lua
index 1b9b23a4..50c84a71 100644
--- a/lua/mason-core/async/init.lua
+++ b/lua/mason-core/async/init.lua
@@ -124,12 +124,9 @@ exports.run_blocking = function(suspend_fn, ...)
result = b
end, ...)
- if
- resolved
- or vim.wait(60 * 60 * 1000, function() -- the wait time is completely arbitrary
- return resolved == true
- end, 50)
- then
+ if resolved or vim.wait(0x7FFFFFFF, function()
+ return resolved == true
+ end, 50) then
if not ok then
error(result, 2)
end