Other: Stop gRPC server on crash

This commit is contained in:
James Houlahan
2022-11-22 12:59:07 +01:00
committed by Leander Beernaert
parent f954f89747
commit 6bd8c6ceb6
6 changed files with 41 additions and 6 deletions

View File

@ -59,6 +59,7 @@ func withBridge( //nolint:funlen
fn func(*bridge.Bridge, <-chan events.Event) error,
) error {
logrus.Debug("Creating bridge")
defer logrus.Debug("Bridge stopped")
// Delete old go-imap cache files
if deleteOldGoIMAPFiles {