Add wantDeliveryError option for signal proto

This commit is contained in:
Zoltán Papp
2025-09-24 14:53:09 +02:00
parent 0753766336
commit 4d46adbb68
8 changed files with 153 additions and 73 deletions
+1 -1
View File
@@ -208,8 +208,8 @@ func (conn *Conn) Open(engineCtx context.Context) error {
// both peer send offer
if err := conn.handshaker.SendOffer(); err != nil {
conn.guard.FailedToSendOffer()
conn.Log.Errorf("failed to send offer: %v", err)
conn.guard.FailedToSendOffer()
}
conn.opened = true
+1 -1
View File
@@ -67,7 +67,7 @@ func (s *Signaler) signalOfferAnswer(offerAnswer OfferAnswer, remoteKey string,
return err
}
if err = s.signal.Send(msg); err != nil {
if err = s.signal.SendWithDeliveryCheck(msg); err != nil {
return err
}