Add for engine

This commit is contained in:
Zoltán Papp
2025-02-24 17:37:34 +01:00
parent d6e185086f
commit 0457251d09
2 changed files with 56 additions and 3 deletions
+1
View File
@@ -166,6 +166,7 @@ func NewConn(engineCtx context.Context, config ConnConfig, statusRecorder *Statu
// Open opens connection to the remote peer
// It will try to establish a connection using ICE and in parallel with relay. The higher priority connection type will
// be used.
// todo: prevent double open
func (conn *Conn) Open() {
conn.semaphore.Add(conn.ctx)
conn.log.Debugf("open connection to peer")