Browse Source

Update UdpConnection.php

walkor 8 năm trước cách đây
mục cha
commit
89f8460250
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Connection/UdpConnection.php

+ 1 - 1
Connection/UdpConnection.php

@@ -61,7 +61,7 @@ class UdpConnection extends ConnectionInterface
      */
     public function send($send_buffer, $raw = false)
     {
-        if (false === $raw && $this->protocol !== 'udp') {
+        if (false === $raw && $this->protocol) {
             $parser      = $this->protocol;
             $send_buffer = $parser::encode($send_buffer, $this);
             if ($send_buffer === '') {