Have the client manager let the clients know that they are being shutdown.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2357 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: PresentsClient.java,v 1.52 2003/02/01 04:43:47 mdb Exp $
|
||||
// $Id: PresentsClient.java,v 1.53 2003/03/30 21:04:18 mdb Exp $
|
||||
|
||||
package com.threerings.presents.server;
|
||||
|
||||
@@ -383,6 +383,18 @@ public class PresentsClient
|
||||
_clobj = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* This is called when the server is shut down in the middle of a
|
||||
* client session. In this circumstance, {@link #endSession} will
|
||||
* <em>not</em> be called and so any persistent data that might
|
||||
* normally be flushed at the end of a client's session should likely
|
||||
* be flushed here.
|
||||
*/
|
||||
public void shutdown ()
|
||||
{
|
||||
// nothing to do by default
|
||||
}
|
||||
|
||||
/**
|
||||
* Makes a note that this client is subscribed to this object so that
|
||||
* we can clean up after ourselves if and when the client goes
|
||||
|
||||
Reference in New Issue
Block a user