diff --git a/src/api-service/__app__/onefuzzlib/proxy.py b/src/api-service/__app__/onefuzzlib/proxy.py index 2043a44a6b..e6986e8d62 100644 --- a/src/api-service/__app__/onefuzzlib/proxy.py +++ b/src/api-service/__app__/onefuzzlib/proxy.py @@ -225,9 +225,10 @@ def get_or_create(cls, region: Region) -> Optional["Proxy"]: proxy = Proxy.get(region) if proxy is not None: if proxy.version != __version__: - # If the proxy is out-of-date, delete and re-create it - proxy.state = VmState.stopping - proxy.save() + if proxy.state != VmState.stopping: + # If the proxy is out-of-date, delete and re-create it + proxy.state = VmState.stopping + proxy.save() return None return proxy