fixed uninitalized maps

This commit is contained in:
2022-03-30 20:55:27 +02:00
parent acbfb97014
commit bb13027b93

View File

@@ -191,6 +191,8 @@ func (dml *DemoMatchLoader) Setup(config *DemoMatchLoaderConfig) error {
dml.dp = &DemoParser{}
dml.parseMap = map[string]bool{}
dml.parseMapL = new(sync.RWMutex)
dml.parsePlayerMap = map[uint32]*sync.RWMutex{}
dml.parsePlayerMapL = new(sync.RWMutex)
dml.cache = config.Cache
dml.retryTimeout = config.RetryTimeout
dml.connectFeedback = make(chan int, 10)