diff --git a/templates/lib_template.go b/templates/lib_template.go index a7cc2b0..9a6188f 100644 --- a/templates/lib_template.go +++ b/templates/lib_template.go @@ -417,14 +417,17 @@ func ResetTor() { currentSettings.CustomSocksPort = settings.CustomSocksPort currentSettings.CustomTorrc = settings.CustomTorrc application.UpdateSettings(currentSettings) - globalACN.ReplaceACN(newAcn) - application.QueryACNVersion() // We need to update settings on reset as buildACN can alter settings, otherwise the next reset will be broken... settings = application.ReadSettings() settingsJson, _ := json.Marshal(settings) application.GetPrimaryBus().Publish(event.NewEvent(UpdateGlobalSettings, map[event.Field]string{event.Data: string(settingsJson)})) - } + } + + // replace ACN regardlesss + globalACN.ReplaceACN(newAcn) + application.QueryACNStatus() + application.QueryACNVersion() log.Infof("Restarted") }() }