only set stating to stopping
@@ -225,6 +225,7 @@ class Proxy(ORMMixin):
proxy = Proxy.get(region)
if proxy is not None:
if proxy.version != __version__:
+ if proxy.state != VmState.stopping:
# If the proxy is out-of-date, delete and re-create it
proxy.state = VmState.stopping
proxy.save()
