From ffc155222554115fced0dae89a6aa24fc3e8ecfa Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Fri, 1 Oct 2004 22:04:18 +0000 Subject: [PATCH] Clear out idle state when client logs off in case their client object remains around until their next session. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3129 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- src/java/com/threerings/crowd/server/CrowdClient.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/crowd/server/CrowdClient.java b/src/java/com/threerings/crowd/server/CrowdClient.java index c136e5f92..b6d7db60d 100644 --- a/src/java/com/threerings/crowd/server/CrowdClient.java +++ b/src/java/com/threerings/crowd/server/CrowdClient.java @@ -1,5 +1,5 @@ // -// $Id: CrowdClient.java,v 1.25 2004/08/27 02:12:34 mdb Exp $ +// $Id: CrowdClient.java,v 1.26 2004/10/01 22:04:18 mdb Exp $ // // Narya library - tools for developing networked games // Copyright (C) 2002-2004 Three Rings Design, Inc., All Rights Reserved @@ -76,6 +76,10 @@ public class CrowdClient extends PresentsClient // will know that we've left clearLocation(body); + // reset our status in case this object remains around until they + // start their next session (which could happen very soon) + BodyProvider.updateOccupantStatus(body, -1, OccupantInfo.ACTIVE); + // clear our chat history if (body != null) { SpeakProvider.clearHistory(body.username);