From 1294baa82e71e1d4cd8c63fc2c3f6e3041062505 Mon Sep 17 00:00:00 2001 From: Itamar Turner-Trauring Date: Tue, 4 Oct 2022 10:30:27 -0400 Subject: [PATCH] LoopingCall may already have been stopped. --- src/allmydata/storage_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/allmydata/storage_client.py b/src/allmydata/storage_client.py index 4ab818b9c..a7d5edb11 100644 --- a/src/allmydata/storage_client.py +++ b/src/allmydata/storage_client.py @@ -1066,7 +1066,8 @@ class HTTPNativeStorageServer(service.MultiService): def stopService(self): service.MultiService.stopService(self) - self._lc.stop() + if self._lc.running: + self._lc.stop() self._failed_to_connect("shut down")