Small bugfix

This commit is contained in:
Daniil Gentili 2019-08-02 13:09:43 +02:00
parent e6bbb00464
commit eabce85f6e
2 changed files with 2 additions and 2 deletions

2
docs

@ -1 +1 @@
Subproject commit 8f6784adf5bca1dbab98ba1ec69ab52050633ca1
Subproject commit ddb2e4f76938b69ceac6e4615901c642accae1ef

View File

@ -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();
}