Small tidying.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5515 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -425,22 +425,18 @@ public class Client
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// otherwise create a new communicator instance and start it up. this will initiate the
|
// create a new communicator and start it up; this will initiate the logon process
|
||||||
// logon process
|
|
||||||
_comm = createCommunicator();
|
_comm = createCommunicator();
|
||||||
_comm.setClassLoader(_loader);
|
_comm.setClassLoader(_loader);
|
||||||
_comm.logon();
|
_comm.logon();
|
||||||
|
|
||||||
// register an interval that we'll use to keep the clock synced and to send pings when
|
// register an interval to keep the clock synced and to send pings when appropriate
|
||||||
// appropriate
|
|
||||||
if (_tickInterval == null) {
|
if (_tickInterval == null) {
|
||||||
_tickInterval = new Interval(_runQueue) {
|
_tickInterval = new Interval(_runQueue) {
|
||||||
@Override
|
@Override public void expired () {
|
||||||
public void expired () {
|
|
||||||
tick();
|
tick();
|
||||||
}
|
}
|
||||||
@Override
|
@Override public String toString () {
|
||||||
public String toString () {
|
|
||||||
return "Client.tickInterval";
|
return "Client.tickInterval";
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -21,6 +21,8 @@
|
|||||||
|
|
||||||
package com.threerings.presents.client;
|
package com.threerings.presents.client;
|
||||||
|
|
||||||
|
import com.samskivert.util.RunAnywhere;
|
||||||
|
|
||||||
import com.threerings.presents.net.AuthResponse;
|
import com.threerings.presents.net.AuthResponse;
|
||||||
import com.threerings.presents.net.AuthResponseData;
|
import com.threerings.presents.net.AuthResponseData;
|
||||||
import com.threerings.presents.net.Message;
|
import com.threerings.presents.net.Message;
|
||||||
@@ -79,7 +81,7 @@ public abstract class Communicator
|
|||||||
*/
|
*/
|
||||||
protected synchronized void updateWriteStamp ()
|
protected synchronized void updateWriteStamp ()
|
||||||
{
|
{
|
||||||
_lastWrite = System.currentTimeMillis();
|
_lastWrite = RunAnywhere.currentTimeMillis();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user