mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
bugfix
This commit is contained in:
@@ -1094,8 +1094,7 @@ save(const char *key, const void * proto) {
|
|||||||
SPIN_LOCK(&CC)
|
SPIN_LOCK(&CC)
|
||||||
if (CC.L == NULL) {
|
if (CC.L == NULL) {
|
||||||
init();
|
init();
|
||||||
L = CC.L;
|
}
|
||||||
} else {
|
|
||||||
L = CC.L;
|
L = CC.L;
|
||||||
lua_pushstring(L, key);
|
lua_pushstring(L, key);
|
||||||
lua_pushvalue(L, -1);
|
lua_pushvalue(L, -1);
|
||||||
@@ -1108,7 +1107,7 @@ save(const char *key, const void * proto) {
|
|||||||
} else {
|
} else {
|
||||||
lua_pop(L,2);
|
lua_pop(L,2);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
SPIN_UNLOCK(&CC)
|
SPIN_UNLOCK(&CC)
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user