Fix servers not getting removed.
This commit is contained in:
parent
8fd8528a0b
commit
2ec35faed1
@ -41,11 +41,6 @@ func (i *Instance) UpdateServers() {
|
||||
i.update_server(tx, s)
|
||||
}
|
||||
|
||||
if i.Debug {
|
||||
fmt.Println("\nRemoving old servers...")
|
||||
}
|
||||
tx.RemoveOldServers(Now())
|
||||
|
||||
if i.Debug {
|
||||
fmt.Println("\nUpdating inactive servers...")
|
||||
}
|
||||
@ -53,6 +48,11 @@ func (i *Instance) UpdateServers() {
|
||||
i.update_server(tx, s)
|
||||
}
|
||||
|
||||
if i.Debug {
|
||||
fmt.Println("\nRemoving old servers...")
|
||||
}
|
||||
tx.RemoveOldServers(Now())
|
||||
|
||||
tx.Commit()
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user