packer/rpc: fix data race in MuxConn

pull/919/head
Mitchell Hashimoto 13 years ago
parent f79daa0b1b
commit 8a24c9b177

@ -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()
} }
}() }()

Loading…
Cancel
Save