From 12790b5ae16c2a9db8c7a01a483b32b33c5fca81 Mon Sep 17 00:00:00 2001 From: jeffser Date: Mon, 16 Sep 2024 10:31:28 -0600 Subject: [PATCH] Stop existing instance before starting new one fallback --- src/connection_handler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/connection_handler.py b/src/connection_handler.py index 9249c6c..ae10274 100644 --- a/src/connection_handler.py +++ b/src/connection_handler.py @@ -92,6 +92,7 @@ class instance(): self.idle_timer.start() def start(self): + self.stop() if shutil.which('ollama'): if not os.path.isdir(os.path.join(cache_dir, 'tmp/ollama')): os.mkdir(os.path.join(cache_dir, 'tmp/ollama'))