mirror of
https://github.com/nonoo/kappanhang.git
synced 2025-12-06 08:02:00 +01:00
Use a slower login method
This commit is contained in:
parent
3395a6b7f3
commit
06c8e900cb
|
|
@ -252,18 +252,22 @@ func (s *controlStream) start() {
|
|||
copy(s.authID[:], r[26:32])
|
||||
log.Print("auth ok, waiting a bit")
|
||||
|
||||
time.AfterFunc(time.Second, func() {
|
||||
time.AfterFunc(1*time.Second, func() {
|
||||
log.Print("sending reauth 1/2...")
|
||||
s.sendPktReauth(true)
|
||||
time.AfterFunc(1*time.Second, func() {
|
||||
log.Print("sending reauth 2/2...")
|
||||
s.sendPktReauth(false)
|
||||
time.AfterFunc(time.Second, func() {
|
||||
s.sendRequestSerialAndAudio()
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
s.common.pkt7.startPeriodicSend(&s.common, 5, false)
|
||||
|
||||
pkt0SendTicker := time.NewTicker(100 * time.Millisecond)
|
||||
reauthTicker := time.NewTicker(30 * time.Second)
|
||||
reauthTicker := time.NewTicker(60 * time.Second)
|
||||
statusLogTicker := time.NewTicker(3 * time.Second)
|
||||
|
||||
for {
|
||||
|
|
|
|||
Loading…
Reference in a new issue