Merge pull request #284 from cnlh/master

pr merge to dev
This commit is contained in:
ffdfgdfg
2019-12-01 23:32:11 +08:00
committed by GitHub
7 changed files with 15 additions and 2 deletions

View File

@@ -109,6 +109,7 @@ func StartNewServer(bridgePort int, cnf *file.Tunnel, bridgeType string) {
func dealClientFlow() {
ticker := time.NewTicker(time.Minute)
defer ticker.Stop()
for {
select {
case <-ticker.C:
@@ -430,6 +431,7 @@ func GetDashboardData() map[string]interface{} {
func flowSession(m time.Duration) {
ticker := time.NewTicker(m)
defer ticker.Stop()
for {
select {
case <-ticker.C: