Fix missing upstreamConn.closed initialization

Fixes: b33e5f29ab ("Fix race condition in upstreamConn.Close")
This commit is contained in:
Simon Ser 2020-03-28 19:59:56 +01:00
parent b1fd943ad6
commit aadeb327d3
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48
1 changed files with 1 additions and 0 deletions

View File

@ -98,6 +98,7 @@ func connectToUpstream(network *network) (*upstreamConn, error) {
srv: network.user.srv,
user: network.user,
outgoing: outgoing,
closed: make(chan struct{}),
channels: make(map[string]*upstreamChannel),
caps: make(map[string]string),
batches: make(map[string]batch),