{\r
if (globalInstance == null)\r
{\r
- globalInstance = new RadegastInstance();\r
+ globalInstance = new RadegastInstance(new GridClient());\r
}\r
return globalInstance;\r
}\r
\r
public readonly List<IRadegastPlugin> PluginsLoaded = new List<IRadegastPlugin>();\r
\r
- private RadegastInstance()\r
+ public RadegastInstance(GridClient client0)\r
{\r
+ // incase something else calls GlobalInstance while we are loading\r
+ globalInstance = this; \r
InitializeLoggingAndConfig();\r
\r
- client = new GridClient();\r
+ client = client0;\r
\r
client.Settings.MULTIPLE_SIMS = true;\r
\r