瀏覽代碼

AsyncConnection remove $_globalEvent

walkor 10 年之前
父節點
當前提交
549a21bd0d
共有 1 個文件被更改,包括 1 次插入1 次删除
  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');