(e error)
| 54 | } |
| 55 | |
| 56 | func (s *stateTrackingStream) closeSend(e error) { |
| 57 | s.mx.Lock() |
| 58 | defer s.mx.Unlock() |
| 59 | |
| 60 | // clear the stream the first time both the send |
| 61 | // and receive are finished |
| 62 | if s.sendErr == nil { |
| 63 | if s.recvErr != nil { |
| 64 | s.clearer.clearStream(s.StreamID()) |
| 65 | } |
| 66 | s.sendErr = e |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | func (s *stateTrackingStream) closeReceive(e error) { |
| 71 | s.mx.Lock() |
no test coverage detected