diff --git a/MareSynchronos/Managers/OnlinePlayerManager.cs b/MareSynchronos/Managers/OnlinePlayerManager.cs index 23d2914..fbd6682 100644 --- a/MareSynchronos/Managers/OnlinePlayerManager.cs +++ b/MareSynchronos/Managers/OnlinePlayerManager.cs @@ -124,6 +124,7 @@ public class OnlinePlayerManager : IDisposable _apiController.PairedWithOther -= ApiControllerOnPairedWithOther; _apiController.UnpairedFromOther -= ApiControllerOnUnpairedFromOther; _apiController.Disconnected -= ApiControllerOnDisconnected; + _apiController.Connected -= ApiControllerOnConnected; _ipcManager.PenumbraDisposed -= ApiControllerOnDisconnected; diff --git a/MareSynchronos/UI/UIShared.cs b/MareSynchronos/UI/UIShared.cs index bffd92a..19a82e7 100644 --- a/MareSynchronos/UI/UIShared.cs +++ b/MareSynchronos/UI/UIShared.cs @@ -171,6 +171,7 @@ namespace MareSynchronos.UI { _pluginConfiguration.ApiUri = _apiController.ServerDictionary.Single(k => k.Value == comboEntries[i]).Key; _pluginConfiguration.Save(); + _ = _apiController.CreateConnections(); } if (isSelected)