Skip to content

Function is called without Enqueue #28

@kiranjavvajisc

Description

@kiranjavvajisc
private void OnDisconnected()
{
      LogUtils.log("OnDisconnected");

      UnityMainThreadDispatcher.Instance().Enqueue(() =>
      {
          InternetChecker.instance.InternetIsNotAvailable();
      });
}

I have the above code, but in the logs "OnDisconnected" log is not seen. But the function "InternetIsNotAvailable" is called every frame in Update. Is there anything that I am missing in the usage of UnityMainThreadDispatcher

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions