Browse Source

fix Undefined property: stdClass::$streamSending

walkor 2 years ago
parent
commit
944e31c129
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Connection/TcpConnection.php

+ 1 - 1
src/Connection/TcpConnection.php

@@ -761,7 +761,7 @@ class TcpConnection extends ConnectionInterface implements JsonSerializable
                 }
             }
             if ($this->status === self::STATUS_CLOSING) {
-                if ($this->context->streamSending) {
+                if (!empty($this->context->streamSending)) {
                     return;
                 }
                 $this->destroy();