Skip to content

Commit

Permalink
agent: shutdown connection on node stop
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen J Day <stephen.day@docker.com>
  • Loading branch information
stevvooe committed Aug 1, 2016
1 parent 058bc22 commit f6abeca
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 f6abeca

Please sign in to comment.