1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-10 13:28:16 +01:00

Slight improvement

This commit is contained in:
Daniil Gentili 2024-12-09 09:24:17 +00:00
parent 79fd98e34e
commit f3ae713428
2 changed files with 4 additions and 5 deletions

2
docs

@ -1 +1 @@
Subproject commit f94e94f9a9f94add50000d0f3d5ae4e7f29cc575
Subproject commit 6df8ad8cf2859557125197b1c467ea667f1fbef4

View File

@ -365,17 +365,16 @@ trait Files
$d->complete();
return;
} catch (FloodPremiumWaitError $e) {
$this->logger("Got {$e->rpc} while uploading $part_num: {$datacenter}, waiting and retrying...");
$this->logger("Got {$e->rpc} while uploading part $part_num: {$datacenter}, waiting and retrying...");
$floodWaitError = $e;
$writePromise = async($writeCb);
} catch (FileRedirect $e) {
$datacenter = $e->dc;
$this->logger("Got redirect while uploading $part_num: {$datacenter}");
$this->logger("Got redirect while uploading part $part_num: {$datacenter}");
$writePromise = async($writeCb);
} catch (Throwable $e) {
$cancellation?->throwIfRequested();
$this->logger("Got exception while uploading $part_num: {$e}");
$d->error($e);
$this->logger("Got exception while uploading part $part_num: {$e}");
$writePromise = async($writeCb);
}
} while (true);