mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
bugfix: make proto shared
This commit is contained in:
@@ -301,7 +301,7 @@ const char *luaF_getlocalname (const Proto *f, int local_number, int pc) {
|
||||
|
||||
void luaF_shareproto (Proto *f) {
|
||||
int i;
|
||||
if (f == NULL)
|
||||
if (f == NULL || isshared(f))
|
||||
return;
|
||||
makeshared(f);
|
||||
luaS_share(f->source);
|
||||
|
||||
Reference in New Issue
Block a user