Checkpoint.
Never in my life have I spent so much time debugging so little. I think the flash player is full of bugs, I've learned to just run everything two or three times and chase the error that happens the most. Fun! git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3929 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -253,7 +253,7 @@ public class Client extends EventDispatcher
|
||||
*/
|
||||
public function gotPong (pong :PongResponse) :void
|
||||
{
|
||||
// TODO: compute time delta bowl-shit
|
||||
// TODO: compute time delta?
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -78,7 +78,7 @@ public class ClientDObjectMgr
|
||||
|
||||
_actionInterval = new Timer(500); //TODO!
|
||||
_actionInterval.addEventListener(TimerEvent.TIMER, processNextAction);
|
||||
_actionInterval.start();
|
||||
//_actionInterval.start();
|
||||
}
|
||||
|
||||
// documentation inherited from interface DObjectManager
|
||||
@@ -117,6 +117,7 @@ public class ClientDObjectMgr
|
||||
{
|
||||
// queue up an action
|
||||
_actions.push(new ObjectAction(oid, target, subscribe));
|
||||
_actionInterval.start();
|
||||
}
|
||||
|
||||
// inherit documentation from the interface
|
||||
@@ -180,6 +181,7 @@ public class ClientDObjectMgr
|
||||
{
|
||||
// append it to our queue
|
||||
_actions.push(msg);
|
||||
_actionInterval.start();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -190,6 +192,7 @@ public class ClientDObjectMgr
|
||||
{
|
||||
// process the next event on our queue
|
||||
if (_actions.length == 0) {
|
||||
_actionInterval.stop();
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -411,7 +414,7 @@ public class ClientDObjectMgr
|
||||
* Called periodically to flush any objects that have been lingering
|
||||
* due to a previously enacted flush delay.
|
||||
*/
|
||||
protected function flushObjects () :void
|
||||
protected function flushObjects (event :TimerEvent) :void
|
||||
{
|
||||
var now :Number = new Date().getTime();
|
||||
for (var oid :String in _flushes.keys()) {
|
||||
|
||||
@@ -102,7 +102,7 @@ public class Communicator
|
||||
// write the message (ends up in _outBuffer)
|
||||
_outStream.writeObject(msg);
|
||||
|
||||
Log.debug("outBuffer: " + Util.bytesToString(_outBuffer));
|
||||
// Log.debug("outBuffer: " + Util.bytesToString(_outBuffer));
|
||||
|
||||
// Frame it by writing the length, then the bytes.
|
||||
// We add 4 to the length, because the length is of the entire frame
|
||||
|
||||
@@ -114,7 +114,9 @@ public class InvocationDirector
|
||||
{
|
||||
_clobj.startTransaction();
|
||||
try {
|
||||
for each (var decoder :InvocationDecoder in _reclist) {
|
||||
for (var itr :IViewCursor = _reclist.getCursor(); itr.moveNext(); ) {
|
||||
var decoder :InvocationDecoder =
|
||||
(itr.current as InvocationDecoder);
|
||||
assignReceiverId(decoder);
|
||||
}
|
||||
} finally {
|
||||
|
||||
@@ -17,7 +17,7 @@ public class TestClient extends Client
|
||||
|
||||
var g1 :String = null;
|
||||
var g2 :String = String(g1);
|
||||
Log.debug("foo: " + (g1 === g2));
|
||||
Log.debug("foo: " + (g1 === g2) + ", *" + g2 + "*, " + g2.length);
|
||||
|
||||
var duckie :Duck = new Goose();
|
||||
duckie.screw();
|
||||
@@ -92,10 +92,6 @@ public class TestClient extends Client
|
||||
{
|
||||
var i :int = TimeBaseMarshaller.GET_TIME_OID;
|
||||
}
|
||||
|
||||
public function b () :void
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -114,7 +110,7 @@ class HelperClass
|
||||
public function HelperClass (cli :TestClient)
|
||||
{
|
||||
_cli = cli;
|
||||
_cli.b();
|
||||
//_cli.b();
|
||||
}
|
||||
|
||||
public function hype () :void
|
||||
|
||||
Reference in New Issue
Block a user