This commit is contained in:
刘河
2019-01-12 01:22:53 +08:00
parent a67cdff02a
commit 0ce6ab1e15
4 changed files with 20 additions and 25 deletions

View File

@@ -141,6 +141,11 @@ func DelTask(vKey string) error {
if err := StopServer(vKey); err != nil {
return err
}
for _, v := range CsvDb.Hosts {
if v.Vkey == vKey {
CsvDb.DelHost(v.Host)
}
}
return CsvDb.DelTask(vKey)
}