OllamaInterface/OllamaClient.py

changeset 51
f8d0b051bee9
parent 37
c0a8df8530ab
child 67
3c2bcbf7eeaf
--- a/OllamaInterface/OllamaClient.py	Wed Sep 18 13:12:28 2024 +0200
+++ b/OllamaInterface/OllamaClient.py	Mon Sep 23 15:34:19 2024 +0200
@@ -570,7 +570,10 @@
             self.__heartbeatTimer.start()
         else:
             self.__heartbeatTimer.stop()
-            self.serverStateChanged.emit(True, "")
+
+        # do one initial heartbeat
+        self.__serverResponding = None
+        self.__periodicHeartbeat()
 
     @pyqtSlot()
     def __periodicHeartbeat(self):

eric ide

mercurial