Skip to content
This repository was archived by the owner on Nov 5, 2024. It is now read-only.

Commit 6514e91

Browse files
committed
修复windows下无法删除某个代理服务的Bug
1 parent 3c24925 commit 6514e91

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

teaconfigs/board.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
package teaconfigs
2+
3+
// 看板
4+
type Board struct {
5+
Charts []*BoardChart `yaml:"charts" json:"charts"`
6+
}

teaconfigs/server.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ func LoadServerConfigsFromDir(dirPath string) []*ServerConfig {
8787
config := &ServerConfig{}
8888
err = reader.ReadYAML(config)
8989
if err != nil {
90+
reader.Close()
9091
continue
9192
}
9293
config.Filename = configFile.Name()
@@ -97,6 +98,7 @@ func LoadServerConfigsFromDir(dirPath string) []*ServerConfig {
9798
}
9899

99100
servers = append(servers, config)
101+
reader.Close()
100102
}
101103

102104
lists.Sort(servers, func(i int, j int) bool {

0 commit comments

Comments
 (0)