Skip to content

Commit

Permalink
fix remoteClose reconnect fail
Browse files Browse the repository at this point in the history
  • Loading branch information
walkor committed Feb 8, 2016
1 parent 5d4daff commit 779e587
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static function connect($ip = '127.0.0.1', $port = 2206)
public static function onRemoteClose()
{
echo "Waring channel connection closed and try to reconnect\n";
self::$_remoteConnection = null;
self::clearTimer();
self::$_timer = Timer::add(1, 'Channel\Client::connect', array(self::$_remoteIp, self::$_remotePort));
}
Expand Down

0 comments on commit 779e587

Please sign in to comment.