skynet.blockcall concurrent bugfix

This commit is contained in:
云风
2013-01-31 21:18:53 +08:00
parent 47de1b7f00
commit ea7e5f7d97
3 changed files with 30 additions and 12 deletions

View File

@@ -202,8 +202,8 @@ end
function skynet.blockcall(addr, typename , ...)
local p = proto[typename]
c.command("LOCK")
local session = c.send(addr, p.id , nil , p.pack(...))
c.command("LOCK",tostring(session))
return p.unpack(coroutine.yield("CALL", session))
end