From 48eb73f9b176158597a6692612674a165c8eaa54 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Tue, 13 Aug 2013 08:21:26 +0200 Subject: [PATCH] [#1733] Correctly pass the promise to the ctx.write(...) in AbstractTrafficShapingHandler --- .../io/netty/handler/traffic/AbstractTrafficShapingHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handler/src/main/java/io/netty/handler/traffic/AbstractTrafficShapingHandler.java b/handler/src/main/java/io/netty/handler/traffic/AbstractTrafficShapingHandler.java index f0c70a3b4e..3a05e40af6 100644 --- a/handler/src/main/java/io/netty/handler/traffic/AbstractTrafficShapingHandler.java +++ b/handler/src/main/java/io/netty/handler/traffic/AbstractTrafficShapingHandler.java @@ -284,7 +284,7 @@ public abstract class AbstractTrafficShapingHandler extends ChannelDuplexHandler if (size > -1 && trafficCounter != null) { trafficCounter.bytesWriteFlowControl(size); if (writeLimit == 0) { - ctx.write(msg); + ctx.write(msg, promise); return; } // compute the number of ms to wait before continue with the