diff --git a/ChatCore/Services/UserAuthProvider.cs b/ChatCore/Services/UserAuthProvider.cs index 03a2690..8998fb8 100644 --- a/ChatCore/Services/UserAuthProvider.cs +++ b/ChatCore/Services/UserAuthProvider.cs @@ -52,7 +52,15 @@ public UserAuthProvider(ILogger logger, IPathProvider pathProv Credentials.Twitch_OAuthToken = old.TwitchOAuthToken; _logger.LogInformation($"Pulled in old Twitch auth info from StreamCore config."); } - File.Move(OldConfigPath, OldConfigPath + ".converted"); + var convertedPath = OldConfigPath + ".converted"; + if (!File.Exists(convertedPath)) + { + File.Move(OldConfigPath, convertedPath); + } + else + { + File.Delete(OldConfigPath); + } } }