Fix error handling in GetAnswerToInvitation function
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
ycc 2024-03-31 17:05:37 +02:00
parent 2a246744db
commit 2ac70d5448

View File

@ -97,8 +97,8 @@ func (r *RedisRouter) Route(msg *meowlib.ToServerMessage) (*meowlib.FromServerMe
if msgcnt == 0 { if msgcnt == 0 {
// get invitation answer // get invitation answer
var answer meowlib.Invitation var answer meowlib.Invitation
storedAnswer, err := r.GetAnswerToInvitation(rq.LookupKey) storedAnswer, _ := r.GetAnswerToInvitation(rq.LookupKey)
if err != nil { if storedAnswer != nil {
err := proto.Unmarshal(storedAnswer, &answer) err := proto.Unmarshal(storedAnswer, &answer)
if err != nil { if err != nil {
from_server.Invitation.Payload = []byte("invitation answer corrupted") from_server.Invitation.Payload = []byte("invitation answer corrupted")