Skip to content

Commit 058db02

Browse files
committed
fix BufferedAsyncConsumer
1 parent c99817b commit 058db02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net.lecousin.core/src/main/java/net/lecousin/framework/concurrent/util/BufferedAsyncConsumer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public IAsync<TError> end() {
8787
synchronized (queue) {
8888
if (error != null)
8989
return new Async<>(error);
90-
if (queue.isEmpty())
90+
if (lastOperation == null && queue.isEmpty())
9191
return consumer.end();
9292
end = new Async<>();
9393
return end;

0 commit comments

Comments
 (0)