Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed May 29, 2023
1 parent 6fbe53b commit ab0e878
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs
Submodule docs updated 33 files
+42 −3 docs/API_docs/constructors/botInlineMessageMediaAuto.md
+42 −3 docs/API_docs/constructors/botInlineMessageText.md
+46 −1 docs/API_docs/constructors/decryptedMessage_45.md
+46 −1 docs/API_docs/constructors/decryptedMessage_73.md
+46 −1 docs/API_docs/constructors/draftMessage.md
+46 −1 docs/API_docs/constructors/help.appUpdate.md
+46 −1 docs/API_docs/constructors/help.deepLinkInfo.md
+46 −1 docs/API_docs/constructors/help.termsOfService.md
+46 −1 docs/API_docs/constructors/help.userInfo.md
+42 −3 docs/API_docs/constructors/inputBotInlineMessageMediaAuto.md
+42 −3 docs/API_docs/constructors/inputBotInlineMessageText.md
+8 −0 docs/API_docs/constructors/inputSingleMedia.md
+42 −3 docs/API_docs/constructors/message.md
+46 −1 docs/API_docs/constructors/sponsoredMessage.md
+46 −1 docs/API_docs/constructors/textWithEntities.md
+46 −1 docs/API_docs/constructors/updateServiceNotification.md
+46 −1 docs/API_docs/constructors/updateShortChatMessage.md
+46 −1 docs/API_docs/constructors/updateShortMessage.md
+46 −1 docs/API_docs/constructors/updateShortSentMessage.md
+8 −0 docs/API_docs/methods/help.editUserInfo.md
+8 −0 docs/API_docs/methods/messages.editInlineBotMessage.md
+8 −0 docs/API_docs/methods/messages.editMessage.md
+8 −0 docs/API_docs/methods/messages.getWebPagePreview.md
+8 −0 docs/API_docs/methods/messages.saveDraft.md
+8 −0 docs/API_docs/methods/messages.sendMedia.md
+8 −0 docs/API_docs/methods/messages.sendMessage.md
+10 −5 docs/PHP/danog/MadelineProto/API.md
+10 −5 docs/PHP/danog/MadelineProto/EventHandler.md
+19 −0 docs/PHP/danog/MadelineProto/Settings/AppInfo.md
+17 −5 docs/docs/BROADCAST.md
+33 −1 docs/docs/FILES.md
+1 −1 docs/docs/UPDATES.md
+8 −0 template/parse_mode.md
3 changes: 2 additions & 1 deletion src/Broadcast/InternalState.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

use Amp\CancelledException;
use Amp\DeferredCancellation;
use danog\MadelineProto\Logger;
use danog\MadelineProto\MTProto;
use Throwable;
use Webmozart\Assert\Assert;
Expand Down Expand Up @@ -171,7 +172,7 @@ private function startBroadcast(): void
// 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);
Expand Down

0 comments on commit ab0e878

Please sign in to comment.