OllamaInterface/OllamaClient.py

changeset 37
c0a8df8530ab
parent 34
2b3ed778af64
child 51
f8d0b051bee9
--- a/OllamaInterface/OllamaClient.py	Sat Sep 07 18:32:46 2024 +0200
+++ b/OllamaInterface/OllamaClient.py	Sat Sep 07 18:44:47 2024 +0200
@@ -339,8 +339,12 @@
         """
         with contextlib.suppress(KeyError):
             self.serverVersion.emit(response["version"])
-            if self.__plugin.getPreferences("OllamaHeartbeatInterval") == 0:
-                # implicit connectivity check
+            if (
+                self.__plugin.getPreferences("OllamaHeartbeatInterval") == 0
+                and not self.__serverResponding
+            ):
+                # implicit connectivity check success
+                self.__serverResponding = True
                 self.serverStateChanged.emit(True, "")
 
     def state(self):

eric ide

mercurial