mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-10 13:28:16 +01:00
Slight improvement
This commit is contained in:
parent
79fd98e34e
commit
f3ae713428
2
docs
2
docs
@ -1 +1 @@
|
|||||||
Subproject commit f94e94f9a9f94add50000d0f3d5ae4e7f29cc575
|
Subproject commit 6df8ad8cf2859557125197b1c467ea667f1fbef4
|
@ -365,17 +365,16 @@ trait Files
|
|||||||
$d->complete();
|
$d->complete();
|
||||||
return;
|
return;
|
||||||
} catch (FloodPremiumWaitError $e) {
|
} 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;
|
$floodWaitError = $e;
|
||||||
$writePromise = async($writeCb);
|
$writePromise = async($writeCb);
|
||||||
} catch (FileRedirect $e) {
|
} catch (FileRedirect $e) {
|
||||||
$datacenter = $e->dc;
|
$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);
|
$writePromise = async($writeCb);
|
||||||
} catch (Throwable $e) {
|
} catch (Throwable $e) {
|
||||||
$cancellation?->throwIfRequested();
|
$cancellation?->throwIfRequested();
|
||||||
$this->logger("Got exception while uploading $part_num: {$e}");
|
$this->logger("Got exception while uploading part $part_num: {$e}");
|
||||||
$d->error($e);
|
|
||||||
$writePromise = async($writeCb);
|
$writePromise = async($writeCb);
|
||||||
}
|
}
|
||||||
} while (true);
|
} while (true);
|
||||||
|
Loading…
Reference in New Issue
Block a user