命令行模式同步

This commit is contained in:
刘河
2019-02-01 02:39:28 +08:00
parent 4e6754deb9
commit c336bf94d8
5 changed files with 9 additions and 9 deletions

View File

@@ -71,7 +71,6 @@ func (s *TRPClient) processor(c *utils.Conn) {
if link, err := c.GetLinkInfo(); err != nil {
break
} else {
log.Println(link)
s.Lock()
s.linkMap[link.Id] = link
s.Unlock()
@@ -118,10 +117,10 @@ func (s *TRPClient) linkProcess(link *utils.Link, c *utils.Conn) {
break
}
utils.PutBufPoolCopy(buf)
if link.ConnType == utils.CONN_UDP {
c.Close()
break
}
//if link.ConnType == utils.CONN_UDP {
// c.Close()
// break
//}
}
}