Beispiel #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()
Beispiel #2
0
 async def close(self):
     """Call to free allocated resources after pairing."""
     if net.is_custom_session(self.session):
         await self.session.close()
Beispiel #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()