Skip to content

Commit b739c01

Browse files
Don't self-autostart if the config is invalid
1 parent dc5c91a commit b739c01

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

plugin_Relay/RelayDevice.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,12 @@ public void OnLoad()
146146
VerticalAlignment = VerticalAlignment.Stretch
147147
};
148148

149-
Task.Delay(3000).ContinueWith(_ =>
150-
{
151-
Host?.Log("Trying to connect to the cached remote server...");
152-
Initialize(); // Initialize the plugin now
153-
});
149+
if (!(RelayService.Instance?.IsBackfeed ?? false))
150+
Task.Delay(3000).ContinueWith(_ =>
151+
{
152+
Host?.Log("Trying to connect to the cached remote server...");
153+
Initialize(); // Initialize the plugin now
154+
});
154155
}
155156

156157
public void Initialize()

0 commit comments

Comments
 (0)