My game stucks over the Splash screen when internet is not available but WiFi is on. This is what I wrote in the beginning of main.lua
if(internetConnected()) then
globals.isReachable = 1;
end
function internetConnected()
local connection = socket.tcp()
connection:settimeout(1000)
local result = connection:connect(“www.google.com”, 80)
connection:close()
if (result) then return true end
return false
en