don't check response, because gate use a fake session for PTYPE_CLIENT

This commit is contained in:
Cloud Wu
2017-04-26 18:01:05 +08:00
parent 3fb46241f2
commit a7be332023

View File

@@ -92,7 +92,6 @@ local function _error_dispatch(error_session, error_source)
if watching_session[error_session] then
table.insert(error_queue, error_session)
end
session_response[coroutine.running()] = true -- error report don't need response
end
end
@@ -239,12 +238,8 @@ function suspend(co, result, command, param, size)
elseif command == "EXIT" then
-- coroutine exit
local address = session_coroutine_address[co]
local session = session_coroutine_id[co]
if address then
release_watching(address)
if session ~= 0 and not session_response[co] then
error "no response" -- need response
end
session_coroutine_id[co] = nil
session_coroutine_address[co] = nil
session_response[co] = nil