Update MTProto.php
This commit is contained in:
parent
50ee77c229
commit
6984893103
@ -497,7 +497,7 @@ class MTProto extends AsyncConstruct implements TLCallback
|
|||||||
*/
|
*/
|
||||||
public function serializeSession(object $data): \Generator
|
public function serializeSession(object $data): \Generator
|
||||||
{
|
{
|
||||||
if ($this->session instanceof MemoryArray) {
|
if (!$this->session || $this->session instanceof MemoryArray) {
|
||||||
return $data;
|
return $data;
|
||||||
}
|
}
|
||||||
yield $this->session['data'] = \serialize($data);
|
yield $this->session['data'] = \serialize($data);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user