From 12b86a0c08ccc04aadc907f5b8c36799f0e15e7d Mon Sep 17 00:00:00 2001 From: Madpeter <57852827+Madpeterz@users.noreply.github.com> Date: Thu, 30 Nov 2023 17:29:48 +0000 Subject: [PATCH] Update HomeboundService.cs --- SecondBotEvents/Services/HomeboundService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SecondBotEvents/Services/HomeboundService.cs b/SecondBotEvents/Services/HomeboundService.cs index cb06c58..d1b31db 100644 --- a/SecondBotEvents/Services/HomeboundService.cs +++ b/SecondBotEvents/Services/HomeboundService.cs @@ -42,11 +42,12 @@ namespace SecondBotEvents.Services return; } home = new SimSlURL(myConfig.GetHomeSimSlUrl()); - backup = new SimSlURL(myConfig.GetBackupSimSLUrl()); - if(home.name == "null") + if (home.name == "null") { myConfig.setEnabled(false); + return; } + backup = new SimSlURL(myConfig.GetBackupSimSLUrl()); if(backup.name == "null") { LogFormater.Info("No backup sim was found using a default");