From eabce85f6e005eca945eff4751c96cbca9759446 Mon Sep 17 00:00:00 2001 From: Daniil Gentili Date: Fri, 2 Aug 2019 13:09:43 +0200 Subject: [PATCH] Small bugfix --- docs | 2 +- src/danog/MadelineProto/Connection.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs b/docs index 8f6784ad..ddb2e4f7 160000 --- a/docs +++ b/docs @@ -1 +1 @@ -Subproject commit 8f6784adf5bca1dbab98ba1ec69ab52050633ca1 +Subproject commit ddb2e4f76938b69ceac6e4615901c642accae1ef diff --git a/src/danog/MadelineProto/Connection.php b/src/danog/MadelineProto/Connection.php index 32e62b46..c3eddd63 100644 --- a/src/danog/MadelineProto/Connection.php +++ b/src/danog/MadelineProto/Connection.php @@ -178,7 +178,7 @@ class Connection $message['send_promise'] = $deferred; $this->pending_outgoing[$this->pending_outgoing_key++] = $message; $this->pending_outgoing_key %= self::PENDING_MAX; - if ($flush) { + if ($flush && isset($this->writer)) { $this->writer->resume(); }