mirror of
https://github.com/fumiama/WireGold.git
synced 2026-06-28 14:50:26 +08:00
optimize(orbyte): use manual destroy
This commit is contained in:
@@ -312,8 +312,11 @@ func (m *Me) sendAllSameDst(packet []byte) (n int) {
|
||||
pcp.V(func(b []byte) {
|
||||
copy(b, packet)
|
||||
})
|
||||
go pcp.V(func(b []byte) {
|
||||
lnk.WritePacket(head.ProtoData, b, lnk.me.ttl)
|
||||
})
|
||||
go func() {
|
||||
pcp.V(func(b []byte) {
|
||||
lnk.WritePacket(head.ProtoData, b, lnk.me.ttl)
|
||||
})
|
||||
pcp.ManualDestroy()
|
||||
}()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user