summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmake/modules/private/service/stream.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/xmake/modules/private/service/stream.lua b/xmake/modules/private/service/stream.lua
index c2709189a..408b67dc3 100644
--- a/xmake/modules/private/service/stream.lua
+++ b/xmake/modules/private/service/stream.lua
@@ -132,6 +132,7 @@ function stream:recv(buff, size)
local cache_maxn = cache:size()
if size <= cache_size then
buff:copy(cache, 1, size)
+ cache:move(size + 1, cache_size)
cache_size = cache_size - size
self._RCACHE_SIZE = cache_size
return buff:slice(1, size)