remove sentry + loginkey if login is wrong

This commit is contained in:
2021-10-05 20:27:08 +02:00
parent d40abc31a8
commit bdbf4b48ad

View File

@@ -164,6 +164,7 @@ func (d *DemoMatchLoader) Setup(username string, password string, authCode strin
return err
}
}
log.Debugf("%+v, %+v", d.steamLogin, d)
d.client = steam.NewClient()
d.matchRecv = make(chan *protobuf.CMsgGCCStrike15V2_MatchList, 500)
@@ -214,6 +215,8 @@ func (d *DemoMatchLoader) steamEventHandler() {
case steamlang.EResult_AccountLogonDenied:
log.Fatalf("[DL] Please provide AuthCode with --authcode")
case steamlang.EResult_InvalidPassword:
os.Remove(d.sentryFile)
os.Remove(d.loginKey)
log.Fatalf("[DL] Steam login wrong")
}
case *steam.DisconnectedEvent: