- Home /
WWW not returning error when no connection in OCULUS GO.
Im using a coroutine to check connection to a website. When I deactive the website it sets the variable to fals and returns as error in the unity inspector as expected.
However my issue occurs when I build this to the Oculus Go. When there is a connection to the website it finds it any everything is ok. But when there is No connection to the website the coroutine hangs and does not return an error or timeout. It just hangs at the yield indefinitaly.
Can anyone help me understanbd why this would be. Or is there any way to implament a timeout functionality manually into this method?
public static IEnumerator CheckInternetConnection()
{
WWW www = new WWW(url);
yield return www;
if (www.error != null)
{
isConnected = false;
}
else
{
isConnected = true;
}
}
Your answer

Follow this Question
Related Questions
WWW.Dispose & coroutine 0 Answers
How to yiled a try/catch block? 2 Answers
i think www blocks display thread 1 Answer
Troubles with network in development build with Android 0 Answers