Commit 921b1c31 authored by alexstocks's avatar alexstocks

fix bugs

parent 2770bf2d
...@@ -312,7 +312,7 @@ func (this *Session) WritePkg(pkg interface{}) error { ...@@ -312,7 +312,7 @@ func (this *Session) WritePkg(pkg interface{}) error {
break // for possible gen a new pkg break // for possible gen a new pkg
// default: // default:
case time.After(this.wDeadline): case <-time.After(this.wDeadline):
log.Warn("%s, [session.WritePkg] wQ{len:%d, cap:%d}", this.Stat(), len(this.wQ), cap(this.wQ)) log.Warn("%s, [session.WritePkg] wQ{len:%d, cap:%d}", this.Stat(), len(this.wQ), cap(this.wQ))
return ErrSessionBlocked return ErrSessionBlocked
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment