update STOMP support to reactor-netty 0.6

This commit is contained in:
Stephane Maldini
2016-12-13 17:29:43 +00:00
parent 70bab23609
commit 2802926c1d

View File

@@ -61,11 +61,11 @@ public class ReactorNettyTcpConnection<P> implements TcpConnection<P> {
@Override
public ListenableFuture<Void> send(Message<P> message) {
ByteBuf byteBuf = this.inbound.alloc()
.buffer();
ByteBuf byteBuf = this.outbound.alloc()
.buffer();
this.encoder.accept(byteBuf, message);
return new MonoToListenableFutureAdapter<>(this.outbound.send(Mono.just(byteBuf)
.then()));
return new MonoToListenableFutureAdapter<>(this.outbound.send(Mono.just(byteBuf))
.then());
}
@Override