mirror of
https://github.com/PretendoNetwork/splatoon.git
synced 2026-09-30 22:28:04 -05:00
Delete the callback entirely to prevent Mutex issues
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user