diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-07-10 17:40:58 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-10 17:40:58 +0000 |
commit | 8d0078b6ef280f43efd7cccc2ea673dccdd1c0aa (patch) | |
tree | 985c05d4add0d5e5a8b6d5884fdc8dd44702fc68 | |
parent | 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8 (diff) | |
parent | 089a0022ae9dd53c7b9b540e251fb0231459e297 (diff) | |
download | stable-diffusion-webui-gfx803-8d0078b6ef280f43efd7cccc2ea673dccdd1c0aa.tar.gz stable-diffusion-webui-gfx803-8d0078b6ef280f43efd7cccc2ea673dccdd1c0aa.tar.bz2 stable-diffusion-webui-gfx803-8d0078b6ef280f43efd7cccc2ea673dccdd1c0aa.zip |
Merge pull request #11718 from tangjicheng46/master
fix: add queue lock for refresh-checkpoints
-rw-r--r-- | modules/api/api.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/api/api.py b/modules/api/api.py index 2e49526e..7f7e3a9b 100644 --- a/modules/api/api.py +++ b/modules/api/api.py @@ -593,7 +593,8 @@ class Api: } def refresh_checkpoints(self): - shared.refresh_checkpoints() + with self.queue_lock: + shared.refresh_checkpoints() def create_embedding(self, args: dict): try: |