reverting dispatched session open

This commit is contained in:
Joakim Erdfelt 2013-03-21 07:13:06 -07:00
parent 8efcc8b566
commit bfb92dc18b
1 changed files with 2 additions and 9 deletions

View File

@ -68,18 +68,11 @@ public class WebSocketServerConnection extends AbstractWebSocketConnection
public void onOpen() public void onOpen()
{ {
boolean beenOpened = opened.getAndSet(true); boolean beenOpened = opened.getAndSet(true);
super.onOpen();
if (!beenOpened) if (!beenOpened)
{ {
execute(new Runnable() factory.sessionOpened(getSession());
{
@Override
public void run()
{
factory.sessionOpened(getSession());
}
});
} }
super.onOpen();
} }
@Override @Override