mirror of
https://github.com/PretendoNetwork/splatoon.git
synced 2026-04-26 07:47:57 -05:00
Delete the callback entirely to prevent Mutex issues
This commit is contained in:
parent
1341ed0b12
commit
5e28217d42
|
|
@ -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() {
|
func registerCommonSecureServerProtocols() {
|
||||||
secureProtocol := secure.NewProtocol()
|
secureProtocol := secure.NewProtocol()
|
||||||
globals.SecureEndpoint.RegisterServiceProtocol(secureProtocol)
|
globals.SecureEndpoint.RegisterServiceProtocol(secureProtocol)
|
||||||
|
|
@ -92,7 +80,6 @@ func registerCommonSecureServerProtocols() {
|
||||||
commonMatchmakeExtensionProtocol := commonmatchmakeextension.NewCommonProtocol(matchmakeExtensionProtocol)
|
commonMatchmakeExtensionProtocol := commonmatchmakeextension.NewCommonProtocol(matchmakeExtensionProtocol)
|
||||||
matchmakeExtensionProtocol.SetHandlerGetPlayingSession(stubGetPlayingSession)
|
matchmakeExtensionProtocol.SetHandlerGetPlayingSession(stubGetPlayingSession)
|
||||||
commonMatchmakeExtensionProtocol.CleanupMatchmakeSessionSearchCriterias = cleanupMatchmakeSessionSearchCriteriasHandler
|
commonMatchmakeExtensionProtocol.CleanupMatchmakeSessionSearchCriterias = cleanupMatchmakeSessionSearchCriteriasHandler
|
||||||
commonMatchmakeExtensionProtocol.OnAfterAutoMatchmakeWithParamPostpone = onAfterAutoMatchmakeWithParamPostpone
|
|
||||||
commonMatchmakeExtensionProtocol.SetManager(globals.MatchmakingManager)
|
commonMatchmakeExtensionProtocol.SetManager(globals.MatchmakingManager)
|
||||||
|
|
||||||
rankingProtocol := ranking.NewProtocol(globals.SecureEndpoint)
|
rankingProtocol := ranking.NewProtocol(globals.SecureEndpoint)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user