mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
Fix memory leak, See #952
This commit is contained in:
@@ -97,7 +97,10 @@ skynet.register_protocol {
|
||||
unpack = function(msg, sz)
|
||||
return mc.packremote(msg, sz)
|
||||
end,
|
||||
dispatch = publish,
|
||||
dispatch = function (...)
|
||||
skynet.ignoreret()
|
||||
publish(...)
|
||||
end,
|
||||
}
|
||||
|
||||
-- publish a message, if the caller is remote, forward the message to the owner node (by remote_publish)
|
||||
|
||||
Reference in New Issue
Block a user