From 70a8c00388b4a67d4ebc06010182f506390c13f4 Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Wed, 20 Aug 2003 19:32:27 +0000 Subject: [PATCH] If a connection is sitting in the system but is closed (perhaps possible through some well-timed disconnection early in the initialization phase), we should consider it idle because then we'll catch it on the next tick and flush it whereas otherwise it would just sit around forever until someone logged in from that IP again. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2788 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/presents/server/net/Connection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/presents/server/net/Connection.java b/src/java/com/threerings/presents/server/net/Connection.java index 6d507e5f6..e45a0da9e 100644 --- a/src/java/com/threerings/presents/server/net/Connection.java +++ b/src/java/com/threerings/presents/server/net/Connection.java @@ -1,5 +1,5 @@ // -// $Id: Connection.java,v 1.15 2002/12/22 19:13:38 mdb Exp $ +// $Id: Connection.java,v 1.16 2003/08/20 19:32:27 mdb Exp $ package com.threerings.presents.server.net; @@ -272,7 +272,7 @@ public abstract class Connection implements NetEventHandler return false; } if (isClosed()) { - return false; + return true; } Log.info("Disconnecting non-communicative client [conn=" + this + ", idle=" + idleMillis + "ms].");