Skip to content

Commit

Permalink
fixed issue #176 , handle running deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
agapple committed Apr 29, 2016
1 parent f1a1cb2 commit 4e76a4b
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,8 @@ public void handleDataChange(String dataPath, Object data) throws Exception {
public void handleDataDeleted(String dataPath) throws Exception {
MDC.put("destination", destination);
mutex.set(false);
// 触发一下退出,可能是人为干预的释放操作或者网络闪断引起的session expired timeout
processActiveExit();
if (!release && activeData != null && isMine(activeData.getAddress())) {
// 如果上一次active的状态就是本机,则即时触发一下active抢占
initRunning();
Expand Down

0 comments on commit 4e76a4b

Please sign in to comment.