mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-21 15:31:41 -04:00
packer/rpc: fix data race in MuxConn
This commit is contained in:
@@ -241,7 +241,9 @@ func (m *MuxConn) loop() {
|
||||
m.mu.Lock()
|
||||
defer m.mu.Unlock()
|
||||
for _, w := range m.streams {
|
||||
w.mu.Lock()
|
||||
w.remoteClose()
|
||||
w.mu.Unlock()
|
||||
}
|
||||
}()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user