File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
services/web/server/src/simcore_service_webserver Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -203,10 +203,10 @@ def get_id(self) -> UserSession:
203203
204204@contextmanager
205205def managed_resource (
206- user_id : str | int , client_session_id : str | None , app : web .Application
206+ user_id : UserID , client_session_id : str | None , app : web .Application
207207) -> Iterator [UserSessionResourcesRegistry ]:
208208 try :
209- registry = UserSessionResourcesRegistry (int ( user_id ) , client_session_id , app )
209+ registry = UserSessionResourcesRegistry (user_id , client_session_id , app )
210210 yield registry
211211 except Exception :
212212 _logger .debug (
Original file line number Diff line number Diff line change 1- """ Observer events handlers
1+ """Observer events handlers
22
33SEE servicelib.observer
44"""
@@ -40,7 +40,7 @@ async def _on_user_logout(
4040 _logger .debug ("user %s must be disconnected" , user_id )
4141 # find the sockets related to the user
4242 sio : AsyncServer = get_socket_server (app )
43- with managed_resource (user_id , client_session_id , app ) as user_session :
43+ with managed_resource (int ( user_id ) , client_session_id , app ) as user_session :
4444 # start by disconnecting this client if possible
4545 if client_session_id :
4646 if socket_id := await user_session .get_socket_id ():
You can’t perform that action at this time.
0 commit comments