Skip to content
Snippets Groups Projects
Commit 2ab0d18d authored by Jake Taylor's avatar Jake Taylor
Browse files

fixed ndf deepcopy

parent c7458352
No related branches found
No related tags found
1 merge request!53Release
...@@ -167,7 +167,7 @@ func (h *HostPool) UpdateNdf(ndf *ndf.NetworkDefinition) { ...@@ -167,7 +167,7 @@ func (h *HostPool) UpdateNdf(ndf *ndf.NetworkDefinition) {
} }
h.ndfMux.Lock() h.ndfMux.Lock()
h.ndf = ndf h.ndf = ndf.DeepCopy()
h.hostMux.Lock() h.hostMux.Lock()
err := h.updateConns() err := h.updateConns()
...@@ -561,4 +561,3 @@ func readRangeUint32(start, end uint32, rng io.Reader) uint32 { ...@@ -561,4 +561,3 @@ func readRangeUint32(start, end uint32, rng io.Reader) uint32 {
return (res % size) + start return (res % size) + start
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment