From d153a06aa2f586b3f3100b2e76a6c0234b0cdee7 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 6 Mar 2008 19:14:19 +0000 Subject: [PATCH] Reinstate the kick in the pants for the reader thread. Previously we relied on the LogoffRequest being received by the server which resulted in the server closing its end of the socket which resulted in the reader being woken up to hear that its socket was closed and then it exited. We'll just have it exit immediately. It's possible that messages in transit to the reader that would have been read prior to full shutdown will now be dropped instead of delivered, but the client has already requested to logoff, so they can't really care about additional messages coming from the server. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4960 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../com/threerings/presents/client/BlockingCommunicator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/java/com/threerings/presents/client/BlockingCommunicator.java b/src/java/com/threerings/presents/client/BlockingCommunicator.java index 86885c58b..593b6067e 100644 --- a/src/java/com/threerings/presents/client/BlockingCommunicator.java +++ b/src/java/com/threerings/presents/client/BlockingCommunicator.java @@ -501,7 +501,7 @@ public class BlockingCommunicator extends Communicator { // we want to interrupt the reader thread as it may be blocked listening to the socket; // this is only called if the reader thread doesn't shut itself down -// interrupt(); + interrupt(); } }