Skip to content

Commit

Permalink
attempt to fix file watcher (Chainlit#674)
Browse files Browse the repository at this point in the history
  • Loading branch information
willydouhard authored Jan 17, 2024
1 parent 2887a7b commit 179c89c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/chainlit/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ async def watch_files_for_changes():
load_module(config.run.module_name, force_refresh=True)
except Exception as e:
logger.error(f"Error reloading module: {e}")
break

await asyncio.sleep(1)
await socket.emit("reload", {})

break
Expand Down

0 comments on commit 179c89c

Please sign in to comment.