Fixed edge case where a message is being processed while a client is disconnecting.
This commit is contained in:
parent
595802158e
commit
cdb51bac86
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ func HandleIncomingMessages(c echo.Context, pubsub pubsub.PubSubMessage, client
|
|||
msg, err := pubsub.ReceiveMessage(c.Request().Context())
|
||||
if err != nil {
|
||||
log.Printf("Failed to receive message: %v", err)
|
||||
continue
|
||||
return
|
||||
}
|
||||
|
||||
data := fmt.Sprintf("data: %s\n\n", msg.Payload)
|
||||
|
|
Loading…
Add table
Reference in a new issue