Skip to content
Snippets Groups Projects
Commit eee7d18f authored by takt's avatar takt Committed by Daniel Czerwonk
Browse files

Fix go routine leak (#185)

parent a9d09b11
Branches
No related tags found
No related merge requests found
......@@ -136,6 +136,7 @@ func (s *establishedState) holdTimerExpired() (state, string) {
func (s *establishedState) keepaliveTimerExpired() (state, string) {
err := s.fsm.sendKeepalive()
if err != nil {
s.uninit()
stopTimer(s.fsm.connectRetryTimer)
s.fsm.con.Close()
s.fsm.connectRetryCounter++
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment