panic on already running

This commit is contained in:
cupcakearmy 2021-04-17 20:45:52 +02:00
parent d5e13d4e27
commit e927fd5a64
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

View File

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