Commit 921b1c31 authored by alexstocks's avatar alexstocks

fix bugs

parent 2770bf2d
......@@ -312,7 +312,7 @@ func (this *Session) WritePkg(pkg interface{}) error {
break // for possible gen a new pkg
// 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))
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