I have a setup screen with two buttons: an OFFLINE button and an ONLINE button. Clicking the ONLINE button sets up AppWarp and connects. Clicking the OFFLINE button disconnects from AppWarp. This part of my code hasn't been changed for ages but lately when I call WarpClient.GetInstance().Disconnect(), I am getting this error:
NOTE: This happens when running the game in the Unity Editor.
==================================
CompareBaseObjectsInternal can only be called from the main thread.
Constructors and field initializers will be executed from the loading thread when loading a scene.
Don't use this function in the constructor or field initializers, instead move initialization code to the Awake or Start function.
==================================
The code is simple and I am not calling anything from a different thread: