This is no longer useful to us.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5034 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -102,14 +102,12 @@ public class Communicator
|
|||||||
|
|
||||||
var host :String = _client.getHostname();
|
var host :String = _client.getHostname();
|
||||||
var pportKey :String = host + ".preferred_port";
|
var pportKey :String = host + ".preferred_port";
|
||||||
var pport :int =
|
var pport :int = ports[0];
|
||||||
(PresentsPrefs.config.getValue(pportKey, ports[0]) as int);
|
|
||||||
var ppidx :int = Math.max(0, ports.indexOf(pport));
|
var ppidx :int = Math.max(0, ports.indexOf(pport));
|
||||||
var port :int = (ports[(_portIdx + ppidx) % ports.length] as int);
|
var port :int = (ports[(_portIdx + ppidx) % ports.length] as int);
|
||||||
|
|
||||||
if (logonWasSuccessful) {
|
if (logonWasSuccessful) {
|
||||||
_portIdx = -1; // indicate that we're no longer trying new ports
|
_portIdx = -1; // indicate that we're no longer trying new ports
|
||||||
PresentsPrefs.config.setValue(pportKey, port);
|
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
Log.getLog(this).info(
|
Log.getLog(this).info(
|
||||||
|
|||||||
Reference in New Issue
Block a user