Fixed bug in FLOOD_WAIT
This commit is contained in:
parent
4e960fdd7b
commit
2f0a7b9d74
@ -228,8 +228,12 @@ void tglq_query_error (long long id) {
|
||||
if (error_code == 420 || error_code == 500) {
|
||||
int wait;
|
||||
if (error_code == 420) {
|
||||
assert (!strncmp (error, "FLOOD_WAIT_", 11));
|
||||
wait = atoll (error + 11);
|
||||
if (!strncmp (error, "FLOOD_WAIT_", 11)) {
|
||||
vlogprintf (E_ERROR, "error = '%s'\n", error);
|
||||
wait = 10;
|
||||
} else {
|
||||
wait = atoll (error + 11);
|
||||
}
|
||||
} else {
|
||||
wait = 10;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user