Issue #3479 - code cleanups
Signed-off-by: lachan-roberts <lachlan@webtide.com>
This commit is contained in:
parent
0bd1f3918d
commit
e09df1fe6d
|
@ -26,11 +26,10 @@ package org.eclipse.jetty.websocket.api;
|
|||
public class WebSocketAdapter implements WebSocketListener
|
||||
{
|
||||
private volatile Session session;
|
||||
private RemoteEndpoint remote;
|
||||
|
||||
public RemoteEndpoint getRemote()
|
||||
{
|
||||
return remote;
|
||||
return session.getRemote();
|
||||
}
|
||||
|
||||
public Session getSession()
|
||||
|
@ -66,7 +65,6 @@ public class WebSocketAdapter implements WebSocketListener
|
|||
public void onWebSocketConnect(Session sess)
|
||||
{
|
||||
this.session = sess;
|
||||
this.remote = sess.getRemote();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
@ -27,5 +27,5 @@ package org.eclipse.jetty.websocket.api;
|
|||
public enum WebSocketBehavior
|
||||
{
|
||||
CLIENT,
|
||||
SERVER;
|
||||
SERVER
|
||||
}
|
||||
|
|
|
@ -134,7 +134,7 @@ public class JettyWebSocketFrameHandlerFactory extends ContainerLifeCycle
|
|||
MethodHandle frameHandle = metadata.getFrameHandle();
|
||||
MethodHandle pingHandle = metadata.getPingHandle();
|
||||
MethodHandle pongHandle = metadata.getPongHandle();
|
||||
BatchMode batchMode = metadata.getBatchMode(); // TODO: what if we're not annotating, who else sets this
|
||||
BatchMode batchMode = metadata.getBatchMode();
|
||||
|
||||
openHandle = bindTo(openHandle, endpointInstance);
|
||||
closeHandle = bindTo(closeHandle, endpointInstance);
|
||||
|
|
Loading…
Reference in New Issue