Skip to content

Commit 046cab9

Browse files
committed
fix(matchmake-extension): Add stub cleanup handler
1 parent 6b715ee commit 046cab9

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

nex/register_common_secure_server_protocols.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@ package nex
33
import (
44
"github.com/PretendoNetwork/metroid-prime-federation-force/database"
55
"github.com/PretendoNetwork/metroid-prime-federation-force/globals"
6+
"github.com/PretendoNetwork/nex-go/v2/types"
67
common_globals "github.com/PretendoNetwork/nex-protocols-common-go/v2/globals"
78
common_match_making "github.com/PretendoNetwork/nex-protocols-common-go/v2/match-making"
89
common_match_making_ext "github.com/PretendoNetwork/nex-protocols-common-go/v2/match-making-ext"
910
common_matchmake_extension "github.com/PretendoNetwork/nex-protocols-common-go/v2/matchmake-extension"
1011
common_nat_traversal "github.com/PretendoNetwork/nex-protocols-common-go/v2/nat-traversal"
1112
common_secure "github.com/PretendoNetwork/nex-protocols-common-go/v2/secure-connection"
1213
match_making "github.com/PretendoNetwork/nex-protocols-go/v2/match-making"
14+
match_making_types "github.com/PretendoNetwork/nex-protocols-go/v2/match-making/types"
1315
match_making_ext "github.com/PretendoNetwork/nex-protocols-go/v2/match-making-ext"
1416
matchmake_extension "github.com/PretendoNetwork/nex-protocols-go/v2/matchmake-extension"
1517
nat_traversal "github.com/PretendoNetwork/nex-protocols-go/v2/nat-traversal"
@@ -43,4 +45,7 @@ func registerCommonSecureServerProtocols() {
4345
globals.SecureEndpoint.RegisterServiceProtocol(matchmakeExtensionProtocol)
4446
commonMatchmakeExtensionProtocol := common_matchmake_extension.NewCommonProtocol(matchmakeExtensionProtocol)
4547
commonMatchmakeExtensionProtocol.SetManager(matchmakingManager)
48+
49+
// TODO - Remove when updating to new version of common protocols
50+
commonMatchmakeExtensionProtocol.CleanupMatchmakeSessionSearchCriterias = func(searchCriterias types.List[match_making_types.MatchmakeSessionSearchCriteria]) {}
4651
}

0 commit comments

Comments
 (0)