Send archive status request before sending the transfer status event

This commit is contained in:
Matthew Penner
2020-12-26 11:42:44 -07:00
parent 1ba3631cc1
commit 5be6e20b03
2 changed files with 21 additions and 13 deletions

View File

@@ -229,11 +229,11 @@ func deleteServer(c *gin.Context) {
// so we don't want to block the HTTP call while waiting on this.
go func(p string) {
if err := os.RemoveAll(p); err != nil {
log.WithFields(log.Fields{"path": p, "error": err}).Warn("failed to remove server files during deletion process")
log.WithFields(log.Fields{"path": p, "error": err}).Warn("failed to remove server files during deletion process")
}
}(s.Filesystem().Path())
var uuid = s.Id()
uuid := s.Id()
server.GetServers().Remove(func(s2 *server.Server) bool {
return s2.Id() == uuid
})