mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
NetworkMgr: fix debug trace (#12297)
Prevent crash: ``` ./luajit: frontend/util.lua:1092: attempt to get length of local 'str' (a nil value) stack traceback: frontend/util.lua:1092: in function 'fixUtf8' frontend/ui/network/manager.lua:1109: in function 'requestToTurnOnWifi' […] ```
This commit is contained in:
parent
f22e8bbbc2
commit
a6663202b7
@ -1106,7 +1106,7 @@ function NetworkMgr:reconnectOrShowNetworkMenu(complete_callback, interactive)
|
||||
if network.password then
|
||||
-- If we hit a preferred network and we're not already connected,
|
||||
-- attempt to connect to said preferred network....
|
||||
logger.dbg("NetworkMgr: Attempting to authenticate on preferred network", util.fixUtf8(ssid, "<EFBFBD>"))
|
||||
logger.dbg("NetworkMgr: Attempting to authenticate on preferred network", util.fixUtf8(network.ssid, "<EFBFBD>"))
|
||||
success, err_msg = self:authenticateNetwork(network)
|
||||
if success then
|
||||
ssid = network.ssid
|
||||
|
Loading…
Reference in New Issue
Block a user