Make 'handshake_complete' safe

This commit is contained in:
Aleksej Pawlowskij
2019-08-02 12:26:44 +02:00
committed by Romuald Bierbasz
parent 3bcc674518
commit f4ea2af924

View File

@@ -208,7 +208,10 @@ class Plugin:
def _initialize_cache(self, data: Dict):
self._persistent_cache = data
self.handshake_complete()
try:
self.handshake_complete()
except Exception:
logging.exception("Unhandled exception during `handshake_complete` step")
self._pass_control_task = asyncio.create_task(self._pass_control())
@staticmethod