Remove flush time setter up

This commit is contained in:
md_5 2013-04-25 09:55:05 +10:00
parent 9a8d24e247
commit 206d24fadd

View File

@ -1,4 +1,4 @@
From d2b8cad032a404f71688ca5e3b3da784c4238aeb Mon Sep 17 00:00:00 2001
From 79f7630a225a228fe0a5b64517a1c6eb62035aed Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Tue, 23 Apr 2013 11:47:32 +1000
Subject: [PATCH] Netty
@ -1049,7 +1049,7 @@ index 0000000..a3b86b8
+}
diff --git a/src/main/java/org/spigotmc/netty/OutboundManager.java b/src/main/java/org/spigotmc/netty/OutboundManager.java
new file mode 100644
index 0000000..a7cef7c
index 0000000..c0541b6
--- /dev/null
+++ b/src/main/java/org/spigotmc/netty/OutboundManager.java
@@ -0,0 +1,18 @@
@ -1066,8 +1066,8 @@ index 0000000..a7cef7c
+
+ public void flush(ChannelHandlerContext ctx, ChannelPromise promise) throws Exception {
+ if (System.currentTimeMillis() - lastFlush > FLUSH_TIME) {
+ ctx.flush(promise);
+ lastFlush = System.currentTimeMillis();
+ ctx.flush(promise);
+ }
+ }
+}