summaryrefslogtreecommitdiffhomepage
path: root/pkg/server/fsm.go
diff options
context:
space:
mode:
authorwanghonghao <wanghonghao@bytedance.com>2018-09-18 20:55:39 +0800
committerwanghonghao <wanghonghao@bytedance.com>2018-09-18 20:55:39 +0800
commit98d4679e316431fae6ba429e21278049a65f969a (patch)
tree3667b7251e6864b14b6402243c4aff8ef9d5f8d4 /pkg/server/fsm.go
parent70d3ddfd662d9c100b37b9875de1c0c256699931 (diff)
fsm: get rid of dead lock
Diffstat (limited to 'pkg/server/fsm.go')
-rw-r--r--pkg/server/fsm.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/server/fsm.go b/pkg/server/fsm.go
index f2640642..8496d3b3 100644
--- a/pkg/server/fsm.go
+++ b/pkg/server/fsm.go
@@ -1349,6 +1349,7 @@ func (h *FSMHandler) opensent() (bgp.FSMState, *FsmStateReason) {
}).Warn("restart flag is not set")
// send notification?
h.conn.Close()
+ fsm.lock.Unlock()
return bgp.BGP_FSM_IDLE, NewFsmStateReason(FSM_INVALID_MSG, nil, nil)
}