fix a condition bug

This commit is contained in:
yangzhouhan
2015-07-28 18:26:53 -07:00
parent 0231ff14bc
commit 75cfec3f72

View File

@ -345,7 +345,7 @@ func (s *Server) processStreamingRPC(t transport.ServerTransport, stream *transp
ss.traceInfo.tr.LazyLog(&ss.traceInfo.firstLine, false)
defer func() {
ss.mu.Lock()
if err != nil {
if err != nil && err != io.EOF {
ss.traceInfo.tr.LazyLog(&fmtStringer{"%v", []interface{}{err}}, true)
ss.traceInfo.tr.SetError()
}