mirror of
https://github.com/Jackett/Jackett
synced 2025-02-23 06:40:57 +00:00
delete json.bak when removing indexer. resolves #5692
This commit is contained in:
parent
78e705ee23
commit
1682767b37
1 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,11 @@ namespace Jackett.Common.Services
|
|||
{
|
||||
var configFilePath = GetIndexerConfigFilePath(indexer);
|
||||
File.Delete(configFilePath);
|
||||
var configFilePathBak = configFilePath + ".bak";
|
||||
if (File.Exists(configFilePathBak))
|
||||
{
|
||||
File.Delete(configFilePathBak);
|
||||
}
|
||||
}
|
||||
|
||||
public void Load(IIndexer idx)
|
||||
|
|
Loading…
Reference in a new issue