mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-24 04:27:08 +08:00
fix recv err in win
This commit is contained in:
@@ -60,11 +60,12 @@ func (m *Me) listen() (conn *net.UDPConn, err error) {
|
||||
logrus.Infoln("[link] recv query")
|
||||
p.onQuery(&packet)
|
||||
case head.ProtoData:
|
||||
logrus.Infoln("[link] deliver to", p.peerip)
|
||||
if p.pipe != nil {
|
||||
p.pipe <- &packet
|
||||
logrus.Infoln("[link] deliver to pipe of", p.peerip)
|
||||
} else {
|
||||
m.pipe <- &packet
|
||||
logrus.Infoln("[link] deliver to pipe of me")
|
||||
}
|
||||
default:
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user