1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-27 11:34:41 +01:00

Slight performance improvement

This commit is contained in:
Daniil Gentili 2023-01-20 14:37:09 +01:00
parent ba02f5dfb2
commit c5b817b007
2 changed files with 2 additions and 2 deletions

View File

@ -344,7 +344,7 @@ final class WriteLoop extends ResumableSignalLoop
} while ($connection->pendingOutgoing && !$skipped);
if (empty($connection->pendingOutgoing)) {
$connection->pendingOutgoing = [];
$connection->pendingOutgoingKey = 'a';
$connection->pendingOutgoingKey = 0;
}
return $skipped;
}

View File

@ -74,7 +74,7 @@ trait Session
* Pending outgoing key.
*
*/
public string $pendingOutgoingKey = 'a';
public int $pendingOutgoingKey = 0;
/**
* Time delta with server.
*