This commit is contained in:
seydx
2026-01-12 19:57:38 +01:00
parent 3a587c9cee
commit 039e916030
5 changed files with 145 additions and 141 deletions
+2 -2
View File
@@ -47,9 +47,9 @@ type ChannelAdapter struct {
func (a *ChannelAdapter) ReadFrom(p []byte) (n int, addr net.Addr, err error) {
var buf chan []byte
if a.channel == IOTCChannelMain {
buf = a.conn.mainBuf
buf = a.conn.clientBuf
} else {
buf = a.conn.speakBuf
buf = a.conn.serverBuf
}
select {