1
0
Fork 0
mirror of https://github.com/Luzifer/automail.git synced 2024-12-30 01:31:16 +00:00

Fix: Handle signals properly

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2020-06-28 17:53:37 +02:00
parent 18cf6e9961
commit 96fa816a2d
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -70,7 +70,7 @@ func main() {
imapClient *client.Client
messages = make(chan *imap.Message, 1000)
needLogin = make(chan struct{}, 1)
sigs = make(chan os.Signal)
sigs = make(chan os.Signal, 1)
ticker = time.NewTicker(cfg.FetchInterval)
)
signal.Notify(sigs, os.Interrupt, syscall.SIGTERM)