Modified Reader and Writer not to die if they have a problem reading or
writing a message. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@381 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
//
|
//
|
||||||
// $Id: Communicator.java,v 1.14 2001/10/01 22:14:54 mdb Exp $
|
// $Id: Communicator.java,v 1.15 2001/10/03 03:39:39 mdb Exp $
|
||||||
|
|
||||||
package com.threerings.cocktail.cher.client;
|
package com.threerings.cocktail.cher.client;
|
||||||
|
|
||||||
@@ -390,6 +390,12 @@ public class Communicator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void handleIterateFailure (Exception e)
|
||||||
|
{
|
||||||
|
Log.warning("Uncaught exception it reader thread.");
|
||||||
|
Log.logStackTrace(e);
|
||||||
|
}
|
||||||
|
|
||||||
protected void didShutdown ()
|
protected void didShutdown ()
|
||||||
{
|
{
|
||||||
// let the communicator know when we finally go away
|
// let the communicator know when we finally go away
|
||||||
@@ -437,6 +443,12 @@ public class Communicator
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void handleIterateFailure (Exception e)
|
||||||
|
{
|
||||||
|
Log.warning("Uncaught exception it writer thread.");
|
||||||
|
Log.logStackTrace(e);
|
||||||
|
}
|
||||||
|
|
||||||
protected void didShutdown ()
|
protected void didShutdown ()
|
||||||
{
|
{
|
||||||
writerDidExit();
|
writerDidExit();
|
||||||
|
|||||||
Reference in New Issue
Block a user