unique service

This commit is contained in:
云风
2012-10-12 15:34:10 +08:00
parent 1d59342e7b
commit aaf84ccb6f
5 changed files with 22 additions and 4 deletions

View File

@@ -28,8 +28,8 @@ function group.release(id)
end
skynet.init(function()
SERVICE = skynet.call("SERVICE", "lua", "group_mgr")
skynet.call(".service","lua","group_agent", SERVICE)
SERVICE = skynet.uniqueservice(true, "group_mgr")
skynet.uniqueservice("group_agent", SERVICE)
end, "mcgroup")
return group