mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 10:59:02 +01:00
Further improvements
This commit is contained in:
parent
16040141ae
commit
a6b4c0f5cf
@ -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);
|
||||
|
@ -65,6 +65,8 @@ trait Templates
|
||||
$firstName = Lang::$current_lang['signupFirstNameWeb'];
|
||||
$lastName = Lang::$current_lang['signupLastNameWeb'];
|
||||
$form = "<input type='text' name='first_name' placeholder='$firstName' required/><input type='text' name='last_name' placeholder='$lastName'/>";
|
||||
} else {
|
||||
$title = '';
|
||||
}
|
||||
$title = \htmlentities($title);
|
||||
$message = \htmlentities($message);
|
||||
|
Loading…
Reference in New Issue
Block a user