mirror of
https://github.com/Luzifer/automail.git
synced 2024-12-20 13:01:20 +00:00
Fix: Handle signals properly
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
18cf6e9961
commit
96fa816a2d
1 changed files with 1 additions and 1 deletions
2
main.go
2
main.go
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue