From 8b4105fac4df74c7b512137b9d7ee34aaaf7139d Mon Sep 17 00:00:00 2001 From: Kevin Froman Date: Mon, 24 Sep 2018 17:04:17 -0500 Subject: [PATCH] work on sockets --- onionr/onionrsockets.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/onionr/onionrsockets.py b/onionr/onionrsockets.py index fb96281c..726cb169 100644 --- a/onionr/onionrsockets.py +++ b/onionr/onionrsockets.py @@ -120,6 +120,7 @@ class OnionrSocketClient: def startSocket(self, peer, reason): address = '' + logger.info('Trying to find socket server for %s' % (peer,)) # Find the newest open socket for a given peer for block in self._core.getBlocksByType('socket'): block = onionrblockapi.Block(block, core=self._myCore) @@ -128,7 +129,8 @@ class OnionrSocketClient: address = block.getMetadata('address') if self._core._utils.validateID(address): # If we got their address, it is valid, and verified, we can break out - break + if block.getMetadata('reason') == 'chat': + break else: address = '' if address != '':