Merge "adb: increase the authentication throttling limit."
This commit is contained in:
commit
393e5258f6
1 changed files with 1 additions and 1 deletions
|
|
@ -360,7 +360,7 @@ void handle_packet(apacket *p, atransport *t)
|
||||||
adb_auth_verified(t);
|
adb_auth_verified(t);
|
||||||
t->failed_auth_attempts = 0;
|
t->failed_auth_attempts = 0;
|
||||||
} else {
|
} else {
|
||||||
if (t->failed_auth_attempts++ > 10) adb_sleep_ms(1000);
|
if (t->failed_auth_attempts++ > 256) adb_sleep_ms(1000);
|
||||||
send_auth_request(t);
|
send_auth_request(t);
|
||||||
}
|
}
|
||||||
} else if (p->msg.arg0 == ADB_AUTH_RSAPUBLICKEY) {
|
} else if (p->msg.arg0 == ADB_AUTH_RSAPUBLICKEY) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue