소스 검색

Update UdpConnection.php

walkor 8 년 전
부모
커밋
89f8460250
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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 === '') {