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)
|
i.update_server(tx, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
if i.Debug {
|
|
||||||
fmt.Println("\nRemoving old servers...")
|
|
||||||
}
|
|
||||||
tx.RemoveOldServers(Now())
|
|
||||||
|
|
||||||
if i.Debug {
|
if i.Debug {
|
||||||
fmt.Println("\nUpdating inactive servers...")
|
fmt.Println("\nUpdating inactive servers...")
|
||||||
}
|
}
|
||||||
@ -53,6 +48,11 @@ func (i *Instance) UpdateServers() {
|
|||||||
i.update_server(tx, s)
|
i.update_server(tx, s)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if i.Debug {
|
||||||
|
fmt.Println("\nRemoving old servers...")
|
||||||
|
}
|
||||||
|
tx.RemoveOldServers(Now())
|
||||||
|
|
||||||
tx.Commit()
|
tx.Commit()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user