Skip to content

Commit

Permalink
Update Client.php
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Sep 30, 2015
1 parent 72dd8b6 commit dba1375
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,6 @@ public static function connect($ip = '127.0.0.1', $port = 2206)
{
self::$_remoteIp = $ip;
self::$_remotePort = $port;
if(self::$_remoteConnection)
{
self::$_remoteConnection->onClose = null;
self::$_remoteConnection->destroy();
}
self::$_remoteConnection = new AsyncTcpConnection('Text://'.self::$_remoteIp.':'.self::$_remotePort);
self::$_remoteConnection->onClose = 'Channel\Client::onRemoteClose';
self::$_remoteConnection->onConnect = 'Channel\Client::onRemoteConnect';
Expand Down

0 comments on commit dba1375

Please sign in to comment.