This commit is contained in:
Daniil Gentili 2019-09-13 13:24:54 +02:00
parent b461a69197
commit 0702ea6ec9

View File

@ -95,7 +95,7 @@ class TempAuthKey extends AuthKey implements JsonSerializable
{
$this->bound = $bound;
if (!$pfs) {
foreach (['authKey', 'id', 'inited', 'serverSalt'] as $key) {
foreach (['authKey', 'id', 'serverSalt'] as $key) {
$this->{$key} = &$bound->{$key};
}
}
@ -187,4 +187,13 @@ class TempAuthKey extends AuthKey implements JsonSerializable
'inited'
];
}
/**
* Wakeup function.
*
* @return array
*/
public function __sleep()
{
$this->inited = (bool) $this->inited;
}
}