From a6b4c0f5cf922295a925a8aadd0250ad808a1e67 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Sun, 27 Sep 2020 23:50:27 +0200 Subject: [PATCH] Further improvements --- src/danog/MadelineProto/Serialization.php | 4 ++-- src/danog/MadelineProto/Wrappers/Templates.php | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/danog/MadelineProto/Serialization.php b/src/danog/MadelineProto/Serialization.php index 98fd45f4..b7ed5af8 100644 --- a/src/danog/MadelineProto/Serialization.php +++ b/src/danog/MadelineProto/Serialization.php @@ -119,10 +119,10 @@ abstract class Serialization //Logger::log('Waiting for exclusive session lock...'); $warningId = Loop::delay(1000, static function () use (&$warningId) { Logger::log("It seems like the session is busy."); - if (\defined(\MADELINE_WORKER::class)) { + /*if (\defined(\MADELINE_WORKER::class)) { Logger::log("Exiting since we're in a worker"); Magic::shutdown(1); - } + }*/ Logger::log("Telegram does not support starting multiple instances of the same session, make sure no other instance of the session is running."); $warningId = Loop::repeat(5000, fn () => Logger::log('Still waiting for exclusive session lock...')); Loop::unreference($warningId); diff --git a/src/danog/MadelineProto/Wrappers/Templates.php b/src/danog/MadelineProto/Wrappers/Templates.php index d920a353..e567a15e 100644 --- a/src/danog/MadelineProto/Wrappers/Templates.php +++ b/src/danog/MadelineProto/Wrappers/Templates.php @@ -65,6 +65,8 @@ trait Templates $firstName = Lang::$current_lang['signupFirstNameWeb']; $lastName = Lang::$current_lang['signupLastNameWeb']; $form = ""; + } else { + $title = ''; } $title = \htmlentities($title); $message = \htmlentities($message);