Esempio n. 1
0
    async def remove(self, identifier: IdentifierType) \
            -> Optional[BaseSession]:
        """Remove a session"""
        if identifier == DefaultSession.DEFAULT_ID:
            raise UnsupportedFeature(f"Cannot remove {identifier} session")

        session = self.deactivate(identifier)
        if session:
            del self._sessions[session.meta.identifier]
            await session.clean_up()
            log.debug(f"Removed session: {session}")
        return session
Esempio n. 2
0
 def command_queue(self) -> CommandQueue:
     raise UnsupportedFeature()