summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/service/remote_build/client.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/xmake/modules/private/service/remote_build/client.lua b/xmake/modules/private/service/remote_build/client.lua
index 53fc6b1e3..e17ee483d 100644
--- a/xmake/modules/private/service/remote_build/client.lua
+++ b/xmake/modules/private/service/remote_build/client.lua
@@ -568,6 +568,10 @@ function remote_build_client:_read_stdin(stream, opt)
if not ok then
break
end
+ else
+ -- we need to avoid always reading stdin
+ -- https://github.com/xmake-io/xmake/issues/3422
+ os.sleep(1)
end
else
os.sleep(500)