diff --git a/main.go b/main.go index 1e0c40f..daa4174 100644 --- a/main.go +++ b/main.go @@ -149,10 +149,15 @@ func eventLoop(dev *streamdeck.Device, tch chan interface{}) error { case <-hup: verbosef("Received SIGHUP, reloading configuration...") - deck, err = LoadDeck(dev, "", deck.File) + + nd, err := LoadDeck(dev, ".", deck.File) if err != nil { - return err + verbosef("The new configuration is not valid, keeping the current one.") + fmt.Fprintf(os.Stderr, "Configuration Error: %s\n", err) + continue } + + deck = nd deck.updateWidgets() case <-sigs: