autopilot/agent: add attachment directive goroutine to wait group

This commit is contained in:
Johan T. Halseth committed 2018-12-06 14:24:15 +01:00
1 parent 35f4ec84d1
commit 86e6d230f2
2 files changed
+22 -3

No files matched your search

+3
View File
@@ -545,7 +545,10 @@ func (a *Agent) controller() {
}
pendingConns[nodeID] = struct{}{}
a.wg.Add(1)
go func(directive AttachmentDirective) {
defer a.wg.Done()
// We'll start out by attempting to connect to
// the peer in order to begin the funding
// workflow.