diff options
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -143,8 +143,10 @@ func Init() { config.Log.Println(err) } - if config.Key, err = util.CreateKey(32); err != nil { - config.Log.Println(err) + if config.Key == "" { + if config.Key, err = util.CreateKey(32); err != nil { + config.Log.Println(err) + } } if err = util.LoadThemes(); err != nil { |