Sat, 07 Sep 2024 18:44:47 +0200
Fixed a bug introduced by the latest change.
OllamaInterface/OllamaClient.py | file | annotate | diff | comparison | revisions |
--- 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):