Skip to content
Prev Previous commit
Next Next commit
add daemon as constructor arg
  • Loading branch information
Archmonger committed Oct 28, 2021
commit 94d1892461c59b473c2aae31a18e3f5db9abbdc6
2 changes: 1 addition & 1 deletion src/django_idom/websocket_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ async def connect(self) -> None:
self._idom_dispatcher_thread = Thread(
target=asyncio.run,
args=(self._run_dispatch_loop(),),
daemon=True,
)
self._idom_dispatcher_thread.daemon = True
self._idom_dispatcher_thread.start()

async def disconnect(self, code: int) -> None:
Expand Down