mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
don't delete sproto object when share it
This commit is contained in:
@@ -16,7 +16,8 @@ loader.save = core.saveproto
|
||||
|
||||
function loader.load(index)
|
||||
local bin, sz = core.loadproto(index)
|
||||
return sproto.new(bin,sz)
|
||||
-- no __gc in metatable
|
||||
return sproto.new(bin,sz, true)
|
||||
end
|
||||
|
||||
return loader
|
||||
|
||||
Reference in New Issue
Block a user