fixed uninitalized maps
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user