panic on already running

pull/46/head
cupcakearmy 4 years ago
parent d5e13d4e27
commit e927fd5a64
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

@ -33,7 +33,7 @@ func setLock(locked bool) error {
if locked { if locked {
running := lock.GetBool("running") running := lock.GetBool("running")
if running { if running {
return errors.New("an instance is already running") panic(errors.New("an instance is already running"))
} }
} }
lock.Set("running", locked) lock.Set("running", locked)

Loading…
Cancel
Save