Skip to content

Commit

Permalink
1.0.15-release
Browse files Browse the repository at this point in the history
fix socket close bug
  • Loading branch information
leonchen83 committed Nov 22, 2016
1 parent a0cea68 commit 3f24013
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ public void open() throws IOException {
final String reply = (String) reply();

SyncMode syncMode = trySync(reply);
if (syncMode == SyncMode.PSYNC) {
//bug fix.
if (syncMode == SyncMode.PSYNC && connected.get()) {
//heart beat send REPLCONF ACK ${slave offset}

heartBeat = new Timer("heart beat");
Expand Down

0 comments on commit 3f24013

Please sign in to comment.