Skip to content

Commit

Permalink
Merge pull request #1277 from stevvooe/close-connection
Browse files Browse the repository at this point in the history
agent: shutdown connection on node stop
  • Loading branch information
stevvooe authored Aug 1, 2016
2 parents e1c0d64 + f6abeca commit b774870
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions agent/node.go
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,7 @@ func (n *Node) runAgent(ctx context.Context, db *bolt.DB, creds credentials.Tran
if err != nil {
return err
}
defer conn.Close()

agent, err := New(&Config{
Hostname: n.config.Hostname,
Expand Down

0 comments on commit b774870

Please sign in to comment.