Skip to content

Commit

Permalink
Close connection before exit. Closes #6
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed May 15, 2018
1 parent 034ae4c commit 4c5d6a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ func main() {
fmt.Printf("%s\n", err)
os.Exit(1)
}
defer conn.Close()

name, options := core.ParseCmd(strings.Join(args, " "))
cmd := core.NewCmd(name, options, conn, config)
Expand Down

0 comments on commit 4c5d6a4

Please sign in to comment.