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