Skip to content

Commit d47944f

Browse files
committed
removed unused import which causes compilation problems on android
removed redundant code
1 parent 32260ae commit d47944f

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/net/tootallnate/websocket/WebSocket.java

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
import java.util.concurrent.BlockingQueue;
1212
import java.util.concurrent.LinkedBlockingQueue;
1313

14-
import javax.naming.LimitExceededException;
15-
1614
import net.tootallnate.websocket.Draft.HandshakeState;
1715
import net.tootallnate.websocket.Framedata.Opcode;
1816
import net.tootallnate.websocket.drafts.Draft_10;
@@ -130,7 +128,6 @@ private void init( WebSocketListener listener, Draft draft, SocketChannel sockch
130128
* @throws IOException
131129
* When socket related I/O errors occur.
132130
* @throws InterruptedException
133-
* @throws LimitExceededException
134131
*/
135132
public void handleRead() throws InterruptedException , IOException {
136133
if( !socketBuffer.hasRemaining() ) {
@@ -167,7 +164,6 @@ public void handleRead() throws InterruptedException , IOException {
167164
HandshakeBuilder response = wsl.onHandshakeRecievedAsServer( this, d, handshake );
168165
channelWrite( d.createHandshake( d.postProcessHandshakeResponseAsServer( handshake, response ), role ) );
169166
draft = d;
170-
this.handshakeComplete = true;
171167
open();
172168
handleRead();
173169
return;
@@ -199,7 +195,6 @@ public void handleRead() throws InterruptedException , IOException {
199195
handshake = draft.translateHandshake( socketBuffer );
200196
handshakestate = draft.acceptHandshakeAsClient( handshakerequest, handshake );
201197
if( handshakestate == HandshakeState.MATCHED ) {
202-
this.handshakeComplete = true;
203198
open();
204199
handleRead();
205200
} else if( handshakestate == HandshakeState.MATCHING ) {

0 commit comments

Comments
 (0)