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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user