We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9058023 commit 3c3f155Copy full SHA for 3c3f155
retry.go
@@ -12,6 +12,7 @@ import (
12
"crypto/sha256"
13
"encoding/binary"
14
"fmt"
15
+ "runtime/debug"
16
"time"
17
18
"go.mau.fi/libsignal/ecc"
@@ -127,6 +128,12 @@ type incomingRetryKey struct {
127
128
129
// handleRetryReceipt handles an incoming retry receipt for an outgoing message.
130
func (cli *Client) handleRetryReceipt(ctx context.Context, receipt *events.Receipt, node *waBinary.Node) error {
131
+ defer func() {
132
+ if r := recover(); r != nil {
133
+ buf := debug.Stack()
134
+ cli.Log.Errorf("panic in handleRetryReceipt: %v\n%s", r, buf)
135
+ }
136
+ }()
137
retryChild, ok := node.GetOptionalChildByTag("retry")
138
if !ok {
139
return &ElementMissingError{Tag: "retry", In: "retry receipt"}
0 commit comments