1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 06:13:54 +01:00
This commit is contained in:
Daniil Gentili 2023-10-04 22:44:43 +02:00
parent 744fa46820
commit f2d35733dd

View File

@ -357,7 +357,7 @@ trait Files
$this->logger("Got redirect while uploading $part_num: {$datacenter}");
$writePromise = async($writeCb);
} catch (Throwable $e) {
$cancellation->throwIfRequested();
$cancellation?->throwIfRequested();
$this->logger("Got exception while uploading $part_num: {$e}");
$d->error($e);
$writePromise = async($writeCb);