mcgroup bugfix

This commit is contained in:
云风
2012-09-17 11:37:08 +08:00
parent 6ce12d1180
commit f4c395759b
3 changed files with 16 additions and 12 deletions

View File

@@ -24,12 +24,12 @@ function group.leave(id, handle)
end
function group.release(id)
skynet.send(SERVICE, "lua" , "CLEAR", skynet.self(), id)
skynet.send(SERVICE, "lua" , "DELETE", skynet.self(), id)
end
skynet.init(function()
SERVICE = skynet.call("SERVICE", "lua", "group_mgr")
skynet.call(".service","lua","group_agent")
end, "group")
skynet.call(".service","lua","group_agent", SERVICE)
end, "mcgroup")
return group
return group