mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-06 07:06:53 +00:00
add write queue again
This commit is contained in:
@@ -148,12 +148,7 @@ func (s *conn) Close() (err error) {
|
||||
}
|
||||
|
||||
func (s *conn) closeProcess() {
|
||||
if s.isClose {
|
||||
logs.Warn("has closed ", s.connId)
|
||||
return
|
||||
}
|
||||
s.isClose = true
|
||||
s.readWait = false
|
||||
s.mux.connMap.Delete(s.connId)
|
||||
common.CopyBuff.Put(s.readBuffer)
|
||||
close(s.readCh)
|
||||
|
Reference in New Issue
Block a user