From 5e28217d424d61f9941dbd429ed9bdc879dffd06 Mon Sep 17 00:00:00 2001 From: shutterbug2000 Date: Sun, 6 Jul 2025 05:19:23 -0500 Subject: [PATCH] Delete the callback entirely to prevent Mutex issues --- nex/register_common_secure_server_protocols.go | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/nex/register_common_secure_server_protocols.go b/nex/register_common_secure_server_protocols.go index da63cd2..f5112c4 100644 --- a/nex/register_common_secure_server_protocols.go +++ b/nex/register_common_secure_server_protocols.go @@ -54,18 +54,6 @@ func cleanupMatchmakeSessionSearchCriteriasHandler(searchCriterias types.List[ma } } -func onAfterAutoMatchmakeWithParamPostpone(_ nex.PacketInterface, _ match_making_types.AutoMatchmakeParam) { - globals.MatchmakingManager.Mutex.Lock() - - //Splatfest hack, commented as it causes database strain - /*_, err := globals.MatchmakingManager.Database.Exec(`UPDATE matchmaking.matchmake_sessions SET open_participation=true WHERE game_mode=12`) - if err != nil { - globals.Logger.Error(err.Error()) - }*/ - - globals.MatchmakingManager.Mutex.Unlock() -} - func registerCommonSecureServerProtocols() { secureProtocol := secure.NewProtocol() globals.SecureEndpoint.RegisterServiceProtocol(secureProtocol) @@ -92,7 +80,6 @@ func registerCommonSecureServerProtocols() { commonMatchmakeExtensionProtocol := commonmatchmakeextension.NewCommonProtocol(matchmakeExtensionProtocol) matchmakeExtensionProtocol.SetHandlerGetPlayingSession(stubGetPlayingSession) commonMatchmakeExtensionProtocol.CleanupMatchmakeSessionSearchCriterias = cleanupMatchmakeSessionSearchCriteriasHandler - commonMatchmakeExtensionProtocol.OnAfterAutoMatchmakeWithParamPostpone = onAfterAutoMatchmakeWithParamPostpone commonMatchmakeExtensionProtocol.SetManager(globals.MatchmakingManager) rankingProtocol := ranking.NewProtocol(globals.SecureEndpoint)