New Instagram Story Templates

Instagram Samples For Product Posts

facial cumshot gifs 003

:
Sky Story Ideas For Instagram
add volatile Socket
1 parent Auto Body Shop Business Cards commit db6737a

Facial cumshot gifs 003 1 file changed Apple Event Brochure

Lines changed: 16 additions & 1 deletion

Kaiichu Insta Posts Instagram Samples For Product

src/main/java/io/socket/client/Socket.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public class Socket extends Emitter {
6363
private Queue<On.Handle> subs;
6464
private final Queue<List<Object>> receiveBuffer = new ConcurrentLinkedQueue<>();
6565
private final Queue<Packet<JSONArray>> sendBuffer = new ConcurrentLinkedQueue<>();
66+
private boolean isVolatile;
6667

6768
private ConcurrentLinkedQueue<Listener> onAnyIncomingListeners = new ConcurrentLinkedQueue<>();
6869
private ConcurrentLinkedQueue<Listener> onAnyOutgoingListeners = new ConcurrentLinkedQueue<>();
@@ -242,8 +243,13 @@ public void run() {
242243
Socket.this.acks.put(ackId, ack);
243244
packet.id = ids++;
244245
}
246+
final boolean isTransportWritable = io.engine != null && io.engine.checkTransportWritable();
247+
final boolean discardPackage = isVolatile && (!isTransportWritable || !connected);
245248

246-
if (Socket.this.connected) {
249+
if (discardPackage) {
250+
logger.log(Level.FINE, "discard package");
251+
}
252+
else if (Socket.this.connected) {
247253
Socket.this.packet(packet);
248254
} else {
249255
Socket.this.sendBuffer.add(packet);
@@ -492,6 +498,15 @@ public void run() {
492498
return this;
493499
}
494500

501+
/**
502+
* converts the socket into a volatile socket and returns
503+
* @return the volatile socket
504+
*/
505+
public Socket getVolatile() {
506+
this.isVolatile = true;
507+
return this;
508+
}
509+
495510
/**
496511
* Disconnects the socket.
497512
*

Apple Event Date Annou Instagram Samples For Product Posts

Comments
 (0)