From 8524ba4c79a9319bb8c84f8436a14fb5a77242ec Mon Sep 17 00:00:00 2001 From: better0332 Date: Fri, 28 Jun 2019 22:38:39 +0800 Subject: [PATCH] fix dead loop (#13) --- core/server.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/server.go b/core/server.go index 6e11098..2098452 100644 --- a/core/server.go +++ b/core/server.go @@ -172,6 +172,8 @@ func (server *Server) startKeepAliveLoop(session *ssh.Session) chan struct{} { t := time.Duration(server.Options["ServerAliveInterval"].(float64)) time.Sleep(time.Second * t) + } else { + return } } }