We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a53705d commit c5e3c81Copy full SHA for c5e3c81
1 file changed
src/org/java_websocket/WebSocketImpl.java
@@ -542,11 +542,15 @@ public void startHandshake( ClientHandshakeBuilder handshakedata ) throws Invali
542
private void write( ByteBuffer buf ) {
543
if( DEBUG )
544
System.out.println( "write(" + buf.remaining() + "): {" + ( buf.remaining() > 1000 ? "too big to display" : new String( buf.array() ) ) + "}" );
545
- try {
+
546
+ outQueue.add( buf );
547
+ /*try {
548
outQueue.put( buf );
549
} catch ( InterruptedException e ) {
550
+ write( buf );
551
+ Thread.currentThread().interrupt(); // keep the interrupted status
552
e.printStackTrace();
- }
553
+ }*/
554
wsl.onWriteDemand( this );
555
}
556
0 commit comments