1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-26 23:14:38 +01:00
This commit is contained in:
Daniil Gentili 2023-05-29 18:49:02 +02:00
parent 6fbe53b446
commit ab0e878c5d
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 3 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit 67fdacb69e30b7a30619a1320ec8e2bef0966fd9
Subproject commit 3a06041168b8d69b31e5de5c555d3c89a9042f6b

View File

@ -22,6 +22,7 @@ namespace danog\MadelineProto\Broadcast;
use Amp\CancelledException;
use Amp\DeferredCancellation;
use danog\MadelineProto\Logger;
use danog\MadelineProto\MTProto;
use Throwable;
use Webmozart\Assert\Assert;
@ -171,7 +172,7 @@ final class InternalState
// The finally block will still be executed
return;
}
throw $e;
$this->API->logger->logger("An error occurred while broadcasting: $e", Logger::ERROR);
} finally {
if ($this->cancellation->isCancelled()) {
$this->setStatus(StatusInternal::CANCELLED);