Permalink
Browse files

Fix bye reply

  • Loading branch information...
1 parent db22ed3 commit ea2342dc3b55deae802a3200dbcd7c25a31498aa @dgomezferro committed Oct 22, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 src/main/java/com/yahoo/pasc/paxos/server/tcp/TcpServer.java
@@ -221,7 +221,9 @@ public void addClient(int clientId, Channel channel) {
if (clientChannels.containsKey(clientId)) {
Bye bye = new Bye(clientId, id);
bye.storeReplica(bye);
- forward(Arrays.<Message> asList(bye));
+ embedder.offer(bye);
+ ChannelBuffer encoded = embedder.poll();
+ channel.write(encoded);
} else {
LOG.debug("Adding client " + clientId + " " + channel);
clientChannels.put(clientId, channel);

0 comments on commit ea2342d

Please sign in to comment.