diff --git a/src/middlewared/middlewared/plugins/auth.py b/src/middlewared/middlewared/plugins/auth.py index 27689fcc06339..7d15e5c393a63 100644 --- a/src/middlewared/middlewared/plugins/auth.py +++ b/src/middlewared/middlewared/plugins/auth.py @@ -961,6 +961,7 @@ async def logout(self, app): Deauthenticates an app and if a token exists, removes that from the session. """ + await self.middleware.event_source_manager.unsubscribe_app(app) await self.session_manager.logout(app) return True