Skip to content

Commit

Permalink
Formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
lolzballs committed May 27, 2015
1 parent 79f7ea0 commit b28d3ba
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Common/src/tk/jackyliao123/proxy/TunnelChannelWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ public void pushWriteBuffer(int connectionId, ByteBuffer data) {

@Override
public ByteBuffer getWriteBuffer() {
if(writeBuffers.isEmpty()) {
if (writeBuffers.isEmpty()) {
Iterator<Map.Entry<Integer, ArrayDeque<ByteBuffer>>> iterator = dataBuffers.entrySet().iterator();
while(iterator.hasNext()) {
while (iterator.hasNext()) {
Map.Entry<Integer, ArrayDeque<ByteBuffer>> entry = iterator.next();
ArrayDeque<ByteBuffer> clientBuffers = entry.getValue();
ByteBuffer buffer = clientBuffers.removeFirst();
if(clientBuffers.isEmpty()){
if (clientBuffers.isEmpty()) {
iterator.remove();
}
super.pushWriteBuffer(buffer);
Expand Down

0 comments on commit b28d3ba

Please sign in to comment.