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:
parent
ba02f5dfb2
commit
c5b817b007
@ -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;
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ trait Session
|
||||
* Pending outgoing key.
|
||||
*
|
||||
*/
|
||||
public string $pendingOutgoingKey = 'a';
|
||||
public int $pendingOutgoingKey = 0;
|
||||
/**
|
||||
* Time delta with server.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user