mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
bug fix - 6867055546
This commit is contained in:
parent
171419ea88
commit
beac4feb84
1 changed files with 2 additions and 1 deletions
|
@ -532,6 +532,7 @@ static void resume(lua_State *L, void *ud) {
|
||||||
|
|
||||||
LUA_API int lua_resume(lua_State *L, lua_State *from, int nargs) {
|
LUA_API int lua_resume(lua_State *L, lua_State *from, int nargs) {
|
||||||
int status;
|
int status;
|
||||||
|
int oldnny = L->nny; /* save 'nny' */
|
||||||
lua_lock(L);
|
lua_lock(L);
|
||||||
luai_userstateresume(L, nargs);
|
luai_userstateresume(L, nargs);
|
||||||
L->nCcalls = (from) ? from->nCcalls + 1 : 1;
|
L->nCcalls = (from) ? from->nCcalls + 1 : 1;
|
||||||
|
@ -553,7 +554,7 @@ LUA_API int lua_resume(lua_State *L, lua_State *from, int nargs) {
|
||||||
}
|
}
|
||||||
lua_assert(status == L->status);
|
lua_assert(status == L->status);
|
||||||
}
|
}
|
||||||
L->nny = 1; /* do not allow yields */
|
L->nny = oldnny; /* restore 'nny' */
|
||||||
L->nCcalls--;
|
L->nCcalls--;
|
||||||
lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0));
|
lua_assert(L->nCcalls == ((from) ? from->nCcalls : 0));
|
||||||
lua_unlock(L);
|
lua_unlock(L);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue