Commit 8a24c9b1 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

packer/rpc: fix data race in MuxConn

parent f79daa0b
...@@ -241,7 +241,9 @@ func (m *MuxConn) loop() { ...@@ -241,7 +241,9 @@ func (m *MuxConn) loop() {
m.mu.Lock() m.mu.Lock()
defer m.mu.Unlock() defer m.mu.Unlock()
for _, w := range m.streams { for _, w := range m.streams {
w.mu.Lock()
w.remoteClose() w.remoteClose()
w.mu.Unlock()
} }
}() }()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment