From 4db2e920b5b2b83591a5d1bbab291fd60ae1f6c1 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 11 Jan 2024 23:34:42 +0800 Subject: fix remote ccache --- xmake/modules/private/cache/build_cache.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/modules/private/cache/build_cache.lua b/xmake/modules/private/cache/build_cache.lua index 198bdbcf1..91bdb20e5 100644 --- a/xmake/modules/private/cache/build_cache.lua +++ b/xmake/modules/private/cache/build_cache.lua @@ -197,7 +197,7 @@ function get(cachekey) _g.cache_hit_count = (_g.cache_hit_count or 0) + 1 return objectfile_cached, objectfile_infofile elseif remote_cache_client.is_connected() then - try + return try { function () if not remote_cache_client.singleton():unreachable() then -- cgit v1.3.1