This commit is contained in:
Jakob Borg 2023-04-28 09:14:50 +02:00
parent 020cfe395a
commit 134df290a3
2 changed files with 4 additions and 3 deletions

View File

@ -97,6 +97,7 @@ func (t *quicListener) serve(ctx context.Context) error {
}
defer func() { _ = udpConn.Close() }()
// XXX: HAX TO BE REVERTED
// svc, conn := stun.New(t.cfg, t, udpConn)
// defer conn.Close()

View File

@ -272,8 +272,8 @@ func newRawConnection(deviceID DeviceID, stream netutil.Stream, receiver Model,
receiver: receiver,
stream: cs,
awaiting: make(map[int]chan asyncResult),
inbox: make(chan streamMessage, 1),
outbox: make(chan asyncMessage, 1),
inbox: make(chan streamMessage),
outbox: make(chan asyncMessage),
closeBox: make(chan asyncMessage),
clusterConfigBox: make(chan *ClusterConfig),
dispatcherLoopStopped: make(chan struct{}),
@ -436,7 +436,7 @@ func (c *rawConnection) streamForRequest(ctx context.Context) chan asyncMessage
}
func (c *rawConnection) registerNewSubstream(strm io.ReadWriteCloser) chan asyncMessage {
outbox := make(chan asyncMessage, 1)
outbox := make(chan asyncMessage)
c.substreams = append(c.substreams, outbox)
go c.substreamReaderLoop(strm, outbox)
go c.substreamWriterLoop(strm, outbox)