diff --git a/main.go b/main.go index 90a2b6e..698ab23 100644 --- a/main.go +++ b/main.go @@ -5,6 +5,7 @@ import ( "log" "os" "os/signal" + "syscall" "github.com/hugot/go-deltachat/deltabot" "github.com/hugot/go-deltachat/deltachat" @@ -97,7 +98,7 @@ func main() { dcClient.On(deltachat.DC_EVENT_INCOMING_MSG, bot.HandleMessage) wait := make(chan os.Signal, 1) - signal.Notify(wait, os.Interrupt) + signal.Notify(wait, os.Interrupt, syscall.SIGTERM) for { select {