Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -1048,6 +1048,16 @@ func (s *grpcServer) InvokeMatchmakingFunctions(req *pb.MmfRequest, stream pb.Op
}
}

// This checks if any of the tickets have been deactivated while the
// MMF was running and abandons the match if this is the case.
if cfg.GetBool("OM_MATCH_ABANDON_ON_INACTIVE_TICKET") {
for _, ticketId := range ticketIdsToDeactivate {
if _, ok := tc.InactiveSet.Load(ticketId); ok {
return;
}
}
}

// Kick off deactivation
logger.Tracef("deactivating tickets in %v", res.GetId())
errs := updateTicketsActiveState(ctx, logger, &tc, ticketIdsToDeactivate, store.Deactivate)
Expand Down