Skip to content

Commit

Permalink
Fix bye reply
Browse files Browse the repository at this point in the history
  • Loading branch information
dgomezferro committed Oct 22, 2012
1 parent db22ed3 commit ea2342d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/yahoo/pasc/paxos/server/tcp/TcpServer.java
Expand Up @@ -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);
Expand Down

0 comments on commit ea2342d

Please sign in to comment.