Esempio n. 1
0
 async def close(self):
     """Close connection and release allocated resources."""
     if net.is_custom_session(self._session):
         await self._session.close()
     if self.listener:
         self.listener.connection_closed()
Esempio n. 2
0
 async def close(self):
     """Call to free allocated resources after pairing."""
     if net.is_custom_session(self.session):
         await self.session.close()
Esempio n. 3
0
 async def close(self):
     """Close connection and release allocated resources."""
     if net.is_custom_session(self._session):
         await self._session.close()
     self._protocol.stop()