From ceca4b549afad218c43d9fc17cb18623e9412d11 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 3 Oct 2001 03:39:39 +0000 Subject: [PATCH] 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 --- .../threerings/presents/client/Communicator.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/client/Communicator.java b/src/java/com/threerings/presents/client/Communicator.java index a5445f1be..7f12f1bb4 100644 --- a/src/java/com/threerings/presents/client/Communicator.java +++ b/src/java/com/threerings/presents/client/Communicator.java @@ -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; @@ -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 () { // 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 () { writerDidExit();