Skip to content

Commit cf2b847

Browse files
fix(api): fix socketio breaking change
Fix for breaking change in `python-socketio` 5.10.0 in which `enter_room` and `leave_room` were made coroutines.
1 parent 5f35ad0 commit cf2b847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

invokeai/app/api/sockets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ async def _handle_queue_event(self, event: Event):
3030

3131
async def _handle_sub_queue(self, sid, data, *args, **kwargs):
3232
if "queue_id" in data:
33-
self.__sio.enter_room(sid, data["queue_id"])
33+
await self.__sio.enter_room(sid, data["queue_id"])
3434

3535
async def _handle_unsub_queue(self, sid, data, *args, **kwargs):
3636
if "queue_id" in data:
37-
self.__sio.enter_room(sid, data["queue_id"])
37+
await self.__sio.enter_room(sid, data["queue_id"])

0 commit comments

Comments
 (0)