mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-23 19:43:09 +00:00
bugfix: make proto shared
This commit is contained in:
@@ -57,7 +57,7 @@ int luaS_eqshrstr (TString *a, TString *b) {
|
||||
}
|
||||
|
||||
void luaS_share (TString *ts) {
|
||||
if (ts == NULL)
|
||||
if (ts == NULL || isshared(ts))
|
||||
return;
|
||||
makeshared(ts);
|
||||
ts->id = ATOM_DEC(&STRID);
|
||||
|
||||
Reference in New Issue
Block a user