mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-26 23:14:38 +01:00
Bugfix
This commit is contained in:
parent
6fbe53b446
commit
ab0e878c5d
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 67fdacb69e30b7a30619a1320ec8e2bef0966fd9
|
||||
Subproject commit 3a06041168b8d69b31e5de5c555d3c89a9042f6b
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user