mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
decode response nil
This commit is contained in:
@@ -451,7 +451,8 @@ ldecode(lua_State *L) {
|
|||||||
size_t sz;
|
size_t sz;
|
||||||
int r;
|
int r;
|
||||||
if (st == NULL) {
|
if (st == NULL) {
|
||||||
return luaL_argerror(L, 1, "Need a sproto_type object");
|
// return nil
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
sz = 0;
|
sz = 0;
|
||||||
buffer = getbuffer(L, 2, &sz);
|
buffer = getbuffer(L, 2, &sz);
|
||||||
|
|||||||
Reference in New Issue
Block a user