Skip to content

Commit

Permalink
Fix a bug when user get Presenter (#19550)
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavotrott committed Jan 31, 2024
1 parent 16da2b6 commit 24acf01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func HasuraConnectionReader(hc *common.HasuraConnection, fromHasuraToBrowserChan
hc.Browserconn.ActiveSubscriptionsMutex.RUnlock()
if !ok {
log.Debugf("Subscription with Id %s doesn't exist anymore, skiping response.", queryId)
return
continue
}

//When Hasura send msg type "complete", this query is finished
Expand Down
2 changes: 1 addition & 1 deletion bbb-graphql-middleware/internal/websrv/connhandler.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ func InvalidateSessionTokenConnections(sessionTokenToInvalidate string) {
close(browserConnection.HasuraConnection.MsgReceivingActiveChan)

// Wait until there are no active mutations
for iterationCount := 0; iterationCount < 100; iterationCount++ {
for iterationCount := 0; iterationCount < 20; iterationCount++ {
activeMutationFound := false
browserConnection.ActiveSubscriptionsMutex.RLock()
for _, subscription := range browserConnection.ActiveSubscriptions {
Expand Down

0 comments on commit 24acf01

Please sign in to comment.