Browse Source

Update UdpConnection.php

walkor 8 years ago
parent
commit
89f8460250
1 changed files with 1 additions and 1 deletions
  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 === '') {