add: potential fix for OSX uses, by @piwi

chg:  adapting fix to support iceman forks extended commands.
This commit is contained in:
iceman1001 2018-05-02 08:11:29 +02:00
parent 886f7fbdad
commit 207fa2b574
39 changed files with 160 additions and 129 deletions

View file

@ -79,9 +79,7 @@ static int l_GetFromBigBuf(lua_State *L){
return 2; // two return values
}
GetFromBigBuf(data, len, startindex);
if ( !WaitForResponseTimeout(CMD_ACK, NULL, 2500) ) {
if ( !GetFromBigBuf(data, len, startindex, NULL, 2500, false)) {
free(data);
lua_pushnil(L);
lua_pushstring(L,"command execution time out");