From 51a6e95f58abd65b454e365d45a510eefd84bfe3 Mon Sep 17 00:00:00 2001 From: Carlos Tadeu Panato Junior Date: Tue, 17 Apr 2018 17:06:55 +0200 Subject: add app shutdown to make sure the goroutines finish and all process are closed (#8629) * run the send email verification as goroutine as well * add app shutdown to make sure all go routines finish --- cmd/commands/reset.go | 1 + 1 file changed, 1 insertion(+) (limited to 'cmd/commands/reset.go') diff --git a/cmd/commands/reset.go b/cmd/commands/reset.go index e766b2206..15222acae 100644 --- a/cmd/commands/reset.go +++ b/cmd/commands/reset.go @@ -29,6 +29,7 @@ func resetCmdF(command *cobra.Command, args []string) error { if err != nil { return err } + defer a.Shutdown() confirmFlag, _ := command.Flags().GetBool("confirm") if !confirmFlag { -- cgit v1.2.3-1-g7c22