Fix missing upstreamConn.closed initialization
Fixes: b33e5f29ab
("Fix race condition in upstreamConn.Close")
This commit is contained in:
parent
b1fd943ad6
commit
aadeb327d3
@ -98,6 +98,7 @@ func connectToUpstream(network *network) (*upstreamConn, error) {
|
|||||||
srv: network.user.srv,
|
srv: network.user.srv,
|
||||||
user: network.user,
|
user: network.user,
|
||||||
outgoing: outgoing,
|
outgoing: outgoing,
|
||||||
|
closed: make(chan struct{}),
|
||||||
channels: make(map[string]*upstreamChannel),
|
channels: make(map[string]*upstreamChannel),
|
||||||
caps: make(map[string]string),
|
caps: make(map[string]string),
|
||||||
batches: make(map[string]batch),
|
batches: make(map[string]batch),
|
||||||
|
Loading…
Reference in New Issue
Block a user