Changed Mutex to RWMutex

This commit is contained in:
Marc Ole Bulling
2021-06-23 11:58:59 +02:00
parent 6cffccb3be
commit 4ee4bca975
6 changed files with 27 additions and 15 deletions

View File

@@ -87,9 +87,9 @@ func resetPassword(passedFlags flags) {
func createSsl(passedFlags flags) {
if passedFlags.createSsl {
settings := configuration.GetServerSettings()
configuration.Release()
settings := configuration.GetServerSettingsReadOnly()
ssl.GenerateIfInvalidCert(settings.ServerUrl, true)
configuration.ReleaseReadOnly()
}
}