fixed initial steam connection

This commit is contained in:
2022-03-01 21:23:34 +01:00
parent d0679bd3b7
commit 126e96a4a9

View File

@@ -231,6 +231,8 @@ func (dml *DemoMatchLoader) Setup(config *DemoMatchLoaderConfig) error {
go dml.gcWorker(config.ApiKey, config.RateLimit)
}
dml.connectFeedback <- LOGIN_FAILED
return nil
}
@@ -251,7 +253,7 @@ func (dml *DemoMatchLoader) connectLoop() {
case LOGIN_FAILED:
time.Sleep(time.Minute * time.Duration(dml.connectionWait))
if !dml.LoggedIn {
log.Infof("[DL] Retrying connecting to steam...")
log.Infof("[DL] Connecting to steam...")
err := dml.connectToSteam()
if err != nil {