packer/rpc: can write while MuxConn is in CloseWait state

This commit is contained in:
Mitchell Hashimoto 2013-12-11 17:14:01 -08:00
parent a6299fc49a
commit 311fb2064d
1 changed files with 1 additions and 1 deletions

View File

@ -430,7 +430,7 @@ func (s *Stream) Write(p []byte) (int, error) {
state := s.state
s.mu.Unlock()
if state != streamStateEstablished {
if state != streamStateEstablished && state != streamStateCloseWait {
return 0, fmt.Errorf("Stream %d in bad state to send: %d", s.id, state)
}