Make sure all shoutrrr notifications are sent (#564)

This commit is contained in:
Cédric Finance 2020-08-08 22:55:51 +02:00 committed by GitHub
parent b8408269bb
commit fdecd40189
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 122 additions and 15 deletions

View file

@ -66,3 +66,10 @@ func (n *Notifier) SendNotification() {
t.SendNotification()
}
}
// Close closes all notifiers.
func (n *Notifier) Close() {
for _, t := range n.types {
t.Close()
}
}