Skip to content

Commit 1b440e3

Browse files
committed
Small fix
1 parent f138a1c commit 1b440e3

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/MTProtoSession/Session.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ public function createSession(): void
219219
*/
220220
public function backupSession(): array
221221
{
222+
if (!isset($this->mainPendingOutgoing)) {
223+
return [];
224+
}
222225
$pending = [];
223226
$message = $this->mainPendingOutgoing;
224227
while (true) {

0 commit comments

Comments
 (0)