work on pm and fixed broken pex when none

master
Kevin Froman 2018-04-03 19:42:20 -05:00
parent 8d261b03dc
commit 87a9ecf426
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B
2 changed files with 2 additions and 4 deletions

View File

@ -156,8 +156,6 @@ class API:
resp = Response(response) resp = Response(response)
elif action == 'kex': elif action == 'kex':
peers = self._core.listPeers() peers = self._core.listPeers()
response = ''
if type(peers) != None:
response = ','.join(self._core.listPeers()) response = ','.join(self._core.listPeers())
resp = Response(response) resp = Response(response)
else: else:

View File

@ -360,7 +360,7 @@ class Core:
payload = 'SELECT * FROM peers;' payload = 'SELECT * FROM peers;'
peerList = [] peerList = []
for i in c.execute(payload): for i in c.execute(payload):
if type(i[2] != None): if type(i[2]) != None:
peerList.append(i[2]) peerList.append(i[2])
peerList.append(self._crypto.pubKey) peerList.append(self._crypto.pubKey)
conn.close() conn.close()