mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
trash message
This commit is contained in:
@@ -162,6 +162,9 @@ function suspend(co, result, command, param, size)
|
||||
elseif command == "RETURN" then
|
||||
local co_session = session_coroutine_id[co]
|
||||
if co_session == 0 then
|
||||
if size ~= nil then
|
||||
c.trash(param, size)
|
||||
end
|
||||
return suspend(co, coroutine_resume(co, false)) -- send don't need ret
|
||||
end
|
||||
local co_address = session_coroutine_address[co]
|
||||
|
||||
Reference in New Issue
Block a user