magnaluna improvements
This commit is contained in:
parent
9e194f3950
commit
44877ff776
2
docs
2
docs
@ -1 +1 @@
|
||||
Subproject commit 042cc04351a461f551a9de7bf704290040910b37
|
||||
Subproject commit fe346258733323e5173e674f15059dea1a1eb880
|
10
magna.php
10
magna.php
@ -56,10 +56,12 @@ class MessageLoop extends ResumableSignalLoop
|
||||
$logger = &$MadelineProto->logger;
|
||||
|
||||
while (true) {
|
||||
$result = yield $this->waitSignal($this->pause($this->timeout));
|
||||
if ($result) {
|
||||
$logger->logger("Got signal in $this, exiting");
|
||||
return;
|
||||
while (!isset($this->call->mId)) {
|
||||
$result = yield $this->waitSignal($this->pause($this->timeout));
|
||||
if ($result) {
|
||||
$logger->logger("Got signal in $this, exiting");
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
try {
|
||||
|
@ -30,6 +30,7 @@ use Amp\Websocket\Rfc6455Client;
|
||||
use Amp\Websocket\Rfc7692CompressionFactory;
|
||||
use danog\MadelineProto\Stream\Async\RawStream;
|
||||
use danog\MadelineProto\Stream\ConnectionContext;
|
||||
use danog\MadelineProto\Stream\RawStreamInterface;
|
||||
use function Amp\Websocket\generateKey;
|
||||
use function Amp\Websocket\validateAcceptForKey;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user