From 98d4679e316431fae6ba429e21278049a65f969a Mon Sep 17 00:00:00 2001 From: wanghonghao Date: Tue, 18 Sep 2018 20:55:39 +0800 Subject: fsm: get rid of dead lock --- pkg/server/fsm.go | 1 + 1 file changed, 1 insertion(+) (limited to 'pkg/server/fsm.go') 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) } -- cgit v1.2.3