fix: panic in seichannel

This commit is contained in:
zarazaex69
2026-05-09 22:22:34 +03:00
parent 2f943c3df6
commit 0ae6721ee2
2 changed files with 4 additions and 1 deletions
+2
View File
@@ -25,6 +25,7 @@ import (
"github.com/openlibrecommunity/olcrtc/internal/crypto"
"github.com/openlibrecommunity/olcrtc/internal/link"
"github.com/openlibrecommunity/olcrtc/internal/logger"
)
// ErrClosed is returned from Read/Write after the conn has been closed.
@@ -53,6 +54,7 @@ func New(ln link.Link, cipher *crypto.Cipher) *Conn {
func (c *Conn) Push(ciphertext []byte) {
pt, err := c.cipher.Decrypt(ciphertext)
if err != nil {
logger.Debugf("muxconn: decrypt failed, dropping frame: %v", err)
return
}
c.mu.Lock()