summaryrefslogtreecommitdiffstats
path: root/cmd/commands/import.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/commands/import.go')
-rw-r--r--cmd/commands/import.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/commands/import.go b/cmd/commands/import.go
index c572ec53a..51fbb8d70 100644
--- a/cmd/commands/import.go
+++ b/cmd/commands/import.go
@@ -51,6 +51,7 @@ func slackImportCmdF(command *cobra.Command, args []string) error {
if err != nil {
return err
}
+ defer a.Shutdown()
if len(args) != 2 {
return errors.New("Incorrect number of arguments.")
@@ -86,6 +87,7 @@ func bulkImportCmdF(command *cobra.Command, args []string) error {
if err != nil {
return err
}
+ defer a.Shutdown()
apply, err := command.Flags().GetBool("apply")
if err != nil {