1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:18:58 +01:00

Update deps

This commit is contained in:
Daniil Gentili 2023-09-30 15:48:52 +02:00
parent dcb5816495
commit 5be1947e6d
4 changed files with 5 additions and 5 deletions

View File

@ -50,7 +50,7 @@
"league/uri": "^7",
"danog/ipc": "^1",
"amphp/log": "^2",
"danog/loop": "^1",
"danog/loop": "^1.1.0",
"phpseclib/phpseclib": "^3.0.22",
"amphp/redis": "^2",
"psr/http-factory": "^1.0",

View File

@ -516,8 +516,8 @@ final class Connection
unset($body);
}
$this->pendingOutgoing[$this->pendingOutgoingKey++] = $message;
if ($flush && isset($this->writer)) {
$this->writer->resume();
if ($flush) {
$this->flush();
}
$this->connect();
$promise->await();

View File

@ -148,7 +148,7 @@ trait CallHandler
$promises[] = async($this->methodCallAsyncWrite(...), $method, $single_args, $new_aargs);
}
if (!isset($aargs['postpone'])) {
$this->writer->resume();
$this->flush();
}
return new WrappedFuture(async(fn () => \array_map(
fn (WrappedFuture $f) => $f->await(),

View File

@ -162,7 +162,7 @@ trait ResponseHandler
}
$this->new_incoming = [];
if ($this->pendingOutgoing) {
$this->writer->resume();
$this->flush();
}
}
/**