Implemented object destruction; wired up some missing stuff; created a
test server to make some testing easier; various other cleanups. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@188 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ConnectionManager.java,v 1.7 2001/08/03 02:12:52 mdb Exp $
|
||||
// $Id: ConnectionManager.java,v 1.8 2001/08/07 20:38:58 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.server.net;
|
||||
|
||||
@@ -216,7 +216,7 @@ public class ConnectionManager extends LoopingThread
|
||||
if (socket == null) {
|
||||
// in theory this shouldn't happen because we got an
|
||||
// ACCEPT_READY event, but better safe than sorry
|
||||
Log.info("Psych! Got ACCEPT_READY, but no connection.");
|
||||
// Log.info("Psych! Got ACCEPT_READY, but no connection.");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: RunningConnection.java,v 1.3 2001/06/02 01:30:37 mdb Exp $
|
||||
// $Id: RunningConnection.java,v 1.4 2001/08/07 20:38:58 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.server.net;
|
||||
|
||||
@@ -33,6 +33,10 @@ public class RunningConnection extends Connection
|
||||
|
||||
public String toString ()
|
||||
{
|
||||
return "[mode=RUNNING, addr=" + _socket.getInetAddress() + "]";
|
||||
if (_socket != null) {
|
||||
return "[mode=RUNNING, addr=" + _socket.getInetAddress() + "]";
|
||||
} else {
|
||||
return "[mode=RUNNING, addr=<disconnected>]";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user