Skip to content

Commit

Permalink
[ADD] infinity loop for websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
shurshilov committed Jun 6, 2024
1 parent 40ea9a3 commit 39efbb1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion const.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION = "1.0.8"
VERSION = "1.0.9"
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ async def producer_webhook(config: Config, timeout: int = 30) -> None:

while True:
try:
if not app.state.websocket_client:
if not getattr(app.state, "websocket_client", None):
websocket_client = WebsocketEvents(
ari_config=config.ari_config,
api_key=config.api_key,
Expand Down

0 comments on commit 39efbb1

Please sign in to comment.