mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-27 01:34:40 +01:00
Small fix
This commit is contained in:
parent
776fafb0d1
commit
486c81cc29
@ -404,6 +404,7 @@ final class DataCenterConnection implements JsonSerializable
|
|||||||
*/
|
*/
|
||||||
public function flush(): void
|
public function flush(): void
|
||||||
{
|
{
|
||||||
|
if (!isset($this->datacenter)) return;
|
||||||
$this->API->logger->logger("Flushing pending messages, DC {$this->datacenter}", Logger::NOTICE);
|
$this->API->logger->logger("Flushing pending messages, DC {$this->datacenter}", Logger::NOTICE);
|
||||||
foreach ($this->connections as $socket) {
|
foreach ($this->connections as $socket) {
|
||||||
$socket->flush();
|
$socket->flush();
|
||||||
|
Loading…
Reference in New Issue
Block a user