Explorar o código

AsyncConnection remove $_globalEvent

walkor %!s(int64=10) %!d(string=hai) anos
pai
achega
549a21bd0d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      GatewayWorker/BusinessWorker.php

+ 1 - 1
GatewayWorker/BusinessWorker.php

@@ -109,7 +109,7 @@ class BusinessWorker extends Worker
         {
             if(!isset($this->gatewayConnections[$addr]))
             {
-                $gateway_connection = new AsyncTcpConnection("GatewayProtocol://$addr", self::$_globalEvent);
+                $gateway_connection = new AsyncTcpConnection("GatewayProtocol://$addr");
                 $gateway_connection->remoteAddress = $addr;
                 $gateway_connection->onConnect = array($this, 'onConnectGateway');
                 $gateway_connection->onMessage = array($this, 'onGatewayMessage');