lua: Check for assignment failures
This commit is contained in:
parent
8d4696f128
commit
33e42811c9
|
@ -25,6 +25,19 @@ do
|
|||
function check_failure(con)
|
||||
check_lu_reject(con)
|
||||
check_disconnect(con)
|
||||
check_ass_failure(con)
|
||||
end
|
||||
|
||||
-- check assignment failures
|
||||
function check_ass_failure(con)
|
||||
local msgtype = bssmap_msgtype_field()
|
||||
if not msgtype then
|
||||
return
|
||||
end
|
||||
|
||||
if tonumber(msgtype) == 0x03 then
|
||||
con[4] = true
|
||||
end
|
||||
end
|
||||
|
||||
-- check if a DISCONNECT is normal
|
||||
|
|
Loading…
Reference in New Issue