proxies: handle origin destruction

This commit is contained in:
Iain Learmonth 2022-04-19 14:51:56 +01:00
parent 7747461e60
commit 21a5d41e8c
2 changed files with 6 additions and 1 deletions

View file

@ -89,6 +89,11 @@ class Origin(AbstractConfiguration):
"updated": self.updated
}
def destroy(self):
super().destroy()
for proxy in self.proxies:
proxy.destroy()
def __repr__(self):
return '<Origin %r>' % self.domain_name