Let's enforce that client reference copying with the structure of ObserverOps.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@5541 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2008-11-11 19:09:42 +00:00
parent 0f8c7d8f4c
commit c16731c8d1
4 changed files with 37 additions and 27 deletions
@@ -76,7 +76,7 @@ public class ServerCommunicator extends Communicator
}
@Override public void networkFailure (final IOException ioe) {
notifyClientObservers(new ObserverOps.Client() {
notifyClientObservers(new ObserverOps.Client(_client) {
protected void notify (ClientObserver obs) {
obs.clientConnectionFailed(_client, ioe);
}
@@ -185,7 +185,7 @@ public class ServerCommunicator extends Communicator
{
if (_logonError == null) {
// we were logged on successfully, so report didLogoff first
notifyClientObservers(new ObserverOps.Session() {
notifyClientObservers(new ObserverOps.Session(_client) {
protected void notify (SessionObserver obs) {
obs.clientDidLogoff(_client);
}